O'Reilly logo

AutoCAD Platform Customization: User Interface, AutoLISP, VBA, and Beyond by Lee Ambrosius

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

images

Requesting Input and Using Conditional and Looping Expressions

Using static values in a custom AutoLISP® program can be helpful in automating tasks, but it also limits the functionality that can be introduced by custom AutoLISP programs. Using static values doesn't give the user the ability to specify a custom value, such as the insertion point of a block or which objects to modify. AutoLISP provides many functions that allow you to request input at the Command prompt or with controls in a dialog box. I cover working with dialog boxes in Chapter 23, “Implementing Dialog Boxes (Windows only).”

When requesting input from a user, you should verify ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required