Chapter 5Requesting 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 13, “Implementing Dialog Boxes (Windows only).”
When requesting input from a user, you should verify the input provided from the user before acting upon it. Comparison and logical grouping ...
Get AutoCAD Platform Customization now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.