![]() |
【转帖】能帮着看看有关提取层信息的吗?
能帮着看看有关提取层信息的吗?
www.dimcax.com 能帮着看看有关提取层信息的吗? static public void test() // this method can have any name { editor ed = application.documentmanager.mdiactivedocument.editor; ; typedvalue[] fillist = new typedvalue[] { new typedvalue(0,"polyline"),new typedvalue((int)dxfcode.layername, "地质点") }; selectionfilter filter = new selectionfilter(fillist); promptselectionresult res = ed.getselection( filter); if (res.status != promptstatus.ok) return; autodesk.autocad.editorinput.selectionset ss = res.value; objectid[] idarray; idarray = ss.getobjectids(); foreach (objectid employeeid in idarray) {ed.writemessage(employeeid.tostring()); } |
| 所有的时间均为北京时间。 现在的时间是 12:56 AM. |