Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AutoCAD VBA - user promt example
#1
AutoCAD VBA User prompt example

by putting this code under the command button (vba) you can enable the User Promt action

Code:
Private Sub CommandButton1_Click()

Dim x As Double

Me.Hide

x = ThisDrawing.Utility.GetReal("Enter a number: ")

Me.Show

End Sub
Reply
#1
AutoCAD VBA User prompt example

by putting this code under the command button (vba) you can enable the User Promt action

Code:
Private Sub CommandButton1_Click()

Dim x As Double

Me.Hide

x = ThisDrawing.Utility.GetReal("Enter a number: ")

Me.Show

End Sub
Reply
CAA


Forum Jump:


Users browsing this thread: 1 Guest(s)