当前位置:   article > 正文

cad.net 筛选、选择集_cad.net过滤选择集

cad.net过滤选择集

过滤块

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();
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

过滤多线

TypedValue[] filList  =       { new TypedValue((int)DxfCode.Start, "LWPolyLine") } ;

SelectionFilter filter  =   new  SelectionFilter(filList);
PromptSelectionResult res  =  ed.SelectAll(filter); // ***
if  (res.Status  !=  PromptStatus.OK)  return ;
Autodesk.AutoCAD.EditorInput.SelectionSet SS  =  res.Value;
ObjectId[] idArray  =  SS.GetObjectIds();
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

未消化:
CAD.net二次开发之图层,文字样式,标注样式,标注封装,引线的封装
https://blog.csdn.net/weixin_43288858/article/details/103106152

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/114276
推荐阅读
相关标签
  

闽ICP备14008679号