几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(VB.NET/C#) (http://www.dimcax.com/hust/forumdisplay.php?f=176)
-   -   【转帖】能帮着看看有关提取层信息的吗? (http://www.dimcax.com/hust/showthread.php?t=9959)

yang686526 2009-04-21 05:49 PM

【转帖】能帮着看看有关提取层信息的吗?
 
能帮着看看有关提取层信息的吗?
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.