Sub ObjectName_example() Dim ent As AcadEntity For Each ent In ThisDrawing.ModelSpace MsgBox "The ObjectName is: " & ent.ObjectName Next End Sub