Sub mm() On Error Resume Next Dim sset As AcadSelectionSet Dim objcir As AcadCircle Dim radius As Double
Dim filtertype(0) As Integer Dim filterdata(0) As Variant
If Not IsNull(ThisDrawing.SelectionSets.Item("Circles")) Then Set sset = ThisDrawing.SelectionSets.Item("Circles") sset.Delete End If Set sset = ThisDrawing.SelectionSets.Add("Circles")
sset.SelectOnScreen filtertype, filterdata Dim ptarr() Dim count As Integer count = sset.count ReDim ptarr(count - 1) For Each objcir In sset
Dim ptcen As Variant ptcen = objcir.Center Dim i As Integer For i = 0 To count - 1 Dim cir1 As AcadCircle Set cir1 = sset.Item(i) cir1.Center = ptarr(i) Next i Next Dim pt1 As Variant pt1 = ptarr(0) MsgBox pt1(0) MsgBox pt1(1)