AutoCAD VBA - user promt example

Contributor
Submitted by techrev on Sun, 04/23/2017 - 09:50
AutoCAD VBA User prompt example

AutoCAD VBA User prompt example

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

 

 

 

 

 

Private Sub CommandButton1_Click()

Dim x As Double

Me.Hide

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

Me.Show

End Sub

Tags