|
发表于 2009-4-22 22:25:00
|
显示全部楼层
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) = "Insert"
ft(1) = 2: fd(1) = "MyBlockName"
ss.Select acSelectionSetAll, , , ft, fd
For Each obj In ss
Debug.Print obj.Handle
Next obj
End Sub |
|