C# 使用正则表达式(dotnetcore)_"regex rx = new regex(@\"
赞
踩
过滤块
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();
过滤多线
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();
未消化:
CAD.net二次开发之图层,文字样式,标注样式,标注封装,引线的封装
https://blog.csdn.net/weixin_43288858/article/details/103106152
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。