呵呵,经efan指点发现是 ssetobj.Select acSelectionSetAll, , , FilterType, FilterData
的问题
 - Public Function k()
- Dim ssetobj As AcadSelectionSet
- Set ssetobj = ThisDrawing.SelectionSets.Add("ss")
- Dim FType(0) As Integer
- Dim FData(0) As Variant
- FType(0) = 0
- FData(0) = "insert"
- Dim FilterType As Variant
- Dim FilterData As Variant
- FilterType = FType
- FilterData = FData
- ssetobj.Select acSelectionSetAll, , , FilterType, FilterData
- k = ssetobj.Count
- MsgBox k
- ssetobj.Delete
- End Function
|