Sub select()
Dim sp As AcadSelectionSet
Set sp = ThisDrawing.SelectionSets.Add("myss")
Dim pointat(0 To 2) As Double
pointat(0) = 10: pointat(1) = 10: pointat(2) = 0#
sp.SelectAtPoint pointat
MsgBox "select: " & nl & CStr(sp.Count)Dim Entry As AcadEntity
i = 10 'red color
For Each Entry In sp
Entry.Color = i
Entry.Update
i = i + 1
Next Entry
sp.Delete ' del select
End Sub
可以,我刚才试过!