简单的例子:
Sub ro()
Dim sset As AcadSelectionSet
Set sset = ThisDrawing.SelectionSets.Add("ro")
sset.Select acSelectionSetAll
Dim ent As AcadEntity
Dim pnt(0 To 2) As Double
Dim roang As Double
pnt(0) = 100
pnt(1) = 100
pnt(2) = 0
roang = 32
For Each ent In sset
ent.Rotate pnt, roang
Next
Sub rota()
Dim sset As AcadSelectionSet
Set sset = ThisDrawing.SelectionSets.Add("tmp111")
ReDim ssobjs(0 To ThisDrawing.ModelSpace.Count - 1) As AcadEntity
Dim I As Integer
For I = 0 To ThisDrawing.ModelSpace.Count - 1
Set ssobjs(I) = ThisDrawing.ModelSpace.Item(I)
Next
' Add the array of objects to the selection set
sset.AddItems ssobjs