- Sub DispOwnerObject()
- Dim ent As AcadEntity
- Dim pnt As Variant
- ThisDrawing.Utility.GetEntity ent, pnt, "选择对象:"
- Dim str As String
- Dim obj As AcadObject
- Set obj = ThisDrawing.ObjectIdToObject(ent.OwnerID)
- Debug.Print obj.ObjectName
- Debug.Print obj.Name
- End Sub
|