90组码 Sub tt() On Error Resume Next Dim ss As AcadSelectionSet ThisDrawing.SelectionSets("Test").Delete Set ss = ThisDrawing.SelectionSets.Add("Test") Dim ft(1) As Integer, fd(1) ft(0) = 0: fd(0) = "LWPOLYLINE" ft(1) = 90: fd(1) = 3 ss.Select acSelectionSetAll, , , ft, fd MsgBox ss.Count End Sub |