images

Catching and Handling Errors

As a veteran AutoLISP® programmer looking back over the past 15 years, I realize writing a custom program wasn't always the difficult part for me. The part of application development that didn't come so naturally was predicting the unexpected. Programs are written based on a set of known criteria, which might include the current values assigned to system variables when the program was created, a specific set of steps that the user should follow, and what the end result should be. However, as in life, your program will have to handle a curve ball every now and then.

As a programmer, you must learn to locate problems—errors ...

Get AutoCAD Platform Customization: User Interface, AutoLISP, VBA, and Beyond 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.