- Private Sub Command3_Click()
- sum = 0
- Dim sSetObj As AcadSelectionSet
- Set sSetObj = ThisDrawing.SelectionSets.Add("test1")
- AppActivate acadapp.Caption
- sSetObj.SelectOnScreen
- AppActivate Form1.Caption
- Dim pickedobjs As AcadEntity
- For Each pickedobjs In sSetObj
- text = pickedobjs.Area
- sum = sum + text
- Next
- sSetObj.Delete
|