images

Authoring, Managing, and Loading AutoLISP Programs

Entering AutoLISP® expressions directly at the Autodesk® AutoCAD® Command prompt is a great way to start learning AutoLISP programming. However, if you want to use expressions multiple times or in different drawings, you will need to enter them over and over again.

Instead of entering AutoLISP expressions at the Command prompt, you can store them in an ASCII text file with a .lsp extension. In addition to entering AutoLISP expressions in a LSP file, you can add nonexecutable expressions known as comments, which allow you to make notes to yourself in the code. After you create a LSP file, you must ...

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.