Because I reject lisp(and all other things in parenthesis(except for those things that need them))Option Explicit
Public Sub PointZ()
Dim varPoint As Variant
Dim varPick As Variant
Dim strKeyword As String
Dim strHow As String
Dim objDtext As AcadText
On Error GoTo BrokeDown
varPoint = ThisDrawing.Utility.GetPoint(, "Pick a point: ")
ThisDrawing.Utility.GetEntity objDtext, varPick, "Pick some text: "
strKeyword = "Append Overwrite"
ThisDrawing.Utility.InitializeUserInput 0, strKeyword
strHow = ThisDrawing.Utility.GetKeyword("Append or [Overwrite]: ")
If strHow = "Append" Then
objDtext.TextString = objDtext.TextString & " " & varPoint(2)
Else
objDtext.TextString = "El. = " & varPoint(2)
End If
Bounce:
Exit Sub
BrokeDown:
Select Case Err.Number
Case 13
ThisDrawing.Utility.Prompt "That's not a piece of text" & vbCrLf
Err.Clear
Resume
Case Else
Debug.Print Err.Number
Debug.Print Err.Description
Error.clr
MsgBox "Program fall down go boom!", vbCritical, "Ka-POW"
GoTo Bounce
End Select
End Sub