- Sub FilterPLOrLine()
- Dim sstext As AcadSelectionSet
- Dim FilterType(3) As Integer
- Dim FilterData(3) As Variant
- Set sstext = ThisDrawing.SelectionSets.Add("SS6")
- FilterType(0) = -4
- FilterData(0) = "<or"
- FilterType(1) = 0
- FilterData(1) = "LINE"
- FilterType(2) = 0
- FilterData(2) = "LWPOLYLINE"
- FilterType(3) = -4
- FilterData(3) = "or>"
-
- sstext.SelectOnScreen FilterType, FilterData
- MsgBox sstext.Count
- ThisDrawing.SelectionSets("SS6").Delete
- End Sub
附一个选择line和pline的代码 |