makegood 发表于 2007-8-15 16:39:00

不错!谢谢!

franky 发表于 2007-9-1 09:03:00

<p>恩 好东西 </p>

auto 发表于 2007-9-5 11:44:00

发现了这个不错的网站,。。。

星期八 发表于 2007-9-5 22:52:00

独孤雪 发表于 2007-9-20 21:28:00

<p>还有VB.net呢</p>

sgt24680 发表于 2007-10-10 15:12:00

<p>public ObjectId CreateLayer()<br/>&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;ObjectId&nbsp; layerId;<br/>&nbsp;&nbsp;&nbsp;Database db=HostApplicationServices.WorkingDatabase;<br/>&nbsp;&nbsp;&nbsp;Transaction trans=db.TransactionManager.StartTransaction();<br/>&nbsp;&nbsp;&nbsp;LayerTable lt=(LayerTable)trans.GetObject(db.LayerTableId,OpenMode.ForWrite);<br/>&nbsp;&nbsp;&nbsp;if(lt.Has("EmployeeLayer"))<br/>&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;layerId=lt["EmployeeId"];<br/>&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;else<br/>&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;LayerTableRecord ltr=new LayerTableRecord();<br/>&nbsp;&nbsp;&nbsp;&nbsp;ltr.Name="EmployeeLayer";<br/>&nbsp;&nbsp;&nbsp;&nbsp;ltr.Color=Color.FromColorIndex(ColorMethod.ByAci,2);<br/>&nbsp;&nbsp;&nbsp;&nbsp;layerId=lt.Add(ltr);<br/>&nbsp;&nbsp;&nbsp;&nbsp;trans.AddNewlyCreatedDBObject(ltr,true);<br/>&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;trans.Commit();<br/>&nbsp;&nbsp;&nbsp;trans.Dispose();<br/>&nbsp;&nbsp;&nbsp;return layerId;<br/>&nbsp;&nbsp;}</p><p>这个函数中的Color.FormColorIndex(ColorMethod.ByAci,2)怎么引入啊?</p>

whitemao1977 发表于 2007-10-18 16:47:00

<p>好东西啊!就是不太会用!</p>

ok0628 发表于 2007-11-6 20:46:00

谢谢分享这么好的东西啊,我真是很需要的.

darkxp 发表于 2007-11-16 11:52:00

<p>这个才是底层精髓</p>

lisa999 发表于 2007-12-10 23:23:00

非常感谢。很不错。
页: 1 [2] 3 4 5 6 7 8 9 10 11
查看完整版本: AutoDesk最新.Net开发教程(增加教程源码)