能帮着看看有关提取层信息的吗?
<P>static public void test() // This method can have any name<BR> { <BR> Editor ed = Application.DocumentManager.MdiActiveDocument.Editor; ;<BR> TypedValue[] filList = new TypedValue[]<BR> { new TypedValue(0,"PolyLine"),new TypedValue((int)DxfCode.LayerName, "地质点") };<BR> SelectionFilter filter = new SelectionFilter(filList); <BR> PromptSelectionResult res = ed.GetSelection( filter); <BR> if (res.Status != PromptStatus.OK) <BR> return; <BR> Autodesk.AutoCAD.EditorInput.SelectionSet SS = res.Value; <BR> ObjectId[] idArray; <BR> idArray = SS.GetObjectIds(); <BR> foreach (ObjectId employeeId in idArray) <BR> {ed.WriteMessage(employeeId.ToString()); </P><P> }</P>
页:
[1]