查看单个帖子
旧 2009-04-21, 05:49 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】能帮着看看有关提取层信息的吗?

能帮着看看有关提取层信息的吗?
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());
}
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)