- Dim obj1 As AcadObject, pt As Variant
- ThisDrawing.Utility.GetEntity obj1, pt
- Dim objG As AcadGroup, obj2 As AcadObject
- For Each objG In ThisDrawing.Groups
- For Each obj2 In objG
- If obj1.ObjectID = obj2.ObjectID Then GoTo Finished
- Next
- Next
- Finished:
- Debug.Print objG.Name
是这意思吗? |