On Error Resume Next Dim ss As AcadSelectionSet ThisDrawing.SelectionSets("Test").Delete Set ss = ThisDrawing.SelectionSets.Add("Test") Dim ft(0) As Integer, fd(0) ft(0) = 0: fd(0) = "*Text" ss.Select acSelectionSetAll, , , ft, fd
Sub test() On Error Resume Next Dim ss As AcadSelectionSet ThisDrawing.SelectionSets("Test").Delete Set ss = ThisDrawing.SelectionSets.Add("Test") Dim ft(3) As Integer, fd(3) ft(0) = -4: fd(0) = "<or" ft(1) = 0: fd(1) = "TEXT" ft(2) = 0: fd(2) = "MTEXT" ft(3) = -4: fd(3) = "or>" ss.Select acSelectionSetAll, , , ft, fd MsgBox ss.Count End Sub