21, Feb, 2019

AutoCAD VBA – user promt 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


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


End Sub

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>