filtertype ,filterdata 必须为数组- Sub kkk()
- Dim selset As AcadSelectionSet
- On Error Resume Next
- Set selset = ThisDrawing.SelectionSets("jihe")
- If Err Then Set selset = ThisDrawing.SelectionSets.Add("jihe")
- selset.Clear
- Dim filtertype(0 To 0) As Integer
- Dim filterdata(0 To 0) As Variant
- filtertype(0) = 0filterdata(0) = "Text"
- selset.SelectOnScreen filtertype, filterdata
- MsgBox selset.Count
- End Sub
|