Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.Runtime
Namespace ExtendedEntityData
Public Class Commands
<CommandMethod("GXD")> _
Public Shared Sub GetXData()
Dim doc As Document = Application.DocumentManager.MdiActiveDocument
Dim ed As Editor = doc.Editor
' Ask the user to select an entity
' for which to retrieve XData
Dim opt As New PromptEntityOptions(vbLf & "Select entity: ")
Dim res As PromptEntityResult = ed.GetEntity(opt)
&nbs
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.Runtime
Namespace ExtendedEntityData
Public Class Commands
<CommandMethod("GXD")> _
Public Shared Sub GetXData()
Dim doc As Document = Application.DocumentManager.MdiActiveDocument
Dim ed As Editor = doc.Editor
' Ask the user to select an entity
' for which to retrieve XData
Dim opt As New PromptEntityOptions(vbLf & "Select entity: ")
Dim res As PromptEntityResult = ed.GetEntity(opt)
&nbs