I ended up revising some of this code to make it work for me. I created a form where a button is clicked to go to model space and to click on an existing node in the drawing. Once the node is click it does update the form with the Northing, Easting, Elevation, but I cant seem to get the Point Number and the Point Description to populate in the form. Is it possible to bring the Point Number and Point Description into the form?
Private Sub cmdGetNode2_Click()
frmCTRL_QA.Hide
Dim application As Object
Dim AutoCAD As acadapplication
Dim acadapplication As Object
Dim acadapp As Object
Dim activedocument As Object
Dim Thisdrawing As Object
Dim Initializeuserinput As Object
Dim modelspace As Object
Dim insertionPnt(0 To 2) As Double
On Error Resume Next
Set acadapp = GetObject(, "AutoCAD.Application")
If Err Then
Err.Clear
Set acadapp = CreateObject("AutoCAD.Application")
AutoCAD.application.Visible = True
If Err Then
MsgBox Err.Description & Err.Number
Exit Sub
End If
End If
'Dim quarg
On Error Resume Next
Set acadapp = GetObject(, "autocad.application")
Set Thisdrawing = acadapp.activedocument
acadapp.Visible = True
''Apptivate
'Me.Show
With Thisdrawing.Utility
.Initializeuserinput 1
InsertionPoint = Thisdrawing.Utility.GetPoint(, vbCr & "insertion point: ")
frmCTRL_QA.txtN.Text = InsertionPont.Number
frmCTRL_QA.txtN.Text = Round(Str(InsertionPoint(0)), 3)
frmCTRL_QA.txtE.Text = Round(Str(InsertionPoint(1)), 3)
frmCTRL_QA.txtZ.Text = Round(Str(InsertionPoint(2)), 3)
End With
Me.show
End Sub