'选择图形中的所有实体并使用过滤机制 SelectSetObj.Select acSelectionSetAll, , , FilterType, FilterData
Dim elem As AcadEntity
For Each elem In SelectSetObj
我不知道如何将elem 转换成Polyline之类的实体
Next elem
Dim poly As AcadPolyline For Each elem In SelectSetObj '对每一条折线提取顶点坐标 If (elem.ObjectName = "AcDbPolyline") Then Set poly = elem End If
Next elem
提示类型不匹配