- Sub Ch4_FilterOrTest()
- Dim element As AcadEntity
- Dim pl As AcadPolyline
- 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) = "<and"
- FilterType(1) = 0
- FilterData(1) = "3dpolyline"
- FilterType(2) = 8
- FilterData(2) = "0"
- FilterType(3) = -4
- FilterData(3) = "and>"
- sstext.SelectOnScreen FilterType, FilterData
- Count = sstext.Count
- MsgBox Count
-
- For Each element In sstext
- element.color = acGreen
- Next element
- sstext.Delete
- End Sub
MsgBox 返回的值为0
|