Introduction — What Is AutoLISP?
AutoLISP: The Complete GuideDiscover the origins of AutoLISP, the programming language built into AutoCAD. From LISP to AutoLISP, learn why Autodesk made this bold choice in 1985.
Read chapterArticles with the tag "LISP".
Discover the origins of AutoLISP, the programming language built into AutoCAD. From LISP to AutoLISP, learn why Autodesk made this bold choice in 1985.
Read chapterLearn to execute your first AutoLISP expressions directly in AutoCAD's command line. Discover the alert function and test your first calculations.
Read chapterMaster prefix notation, understand the role of parentheses, and learn the basic rules of AutoLISP syntax. Learn to read and write LISP code with confidence.
Read chapterMaster AutoLISP's arithmetic functions — addition, subtraction, multiplication, division, and more. Discover the subtleties of calculations in LISP.
Read chapterLearn how to store values in variables with setq, and discover the fundamental data types in AutoLISP — integers, reals, strings, and lists.
Read chapterLearn how to create your own functions and AutoCAD commands with defun. Discover arguments, local variables, and the c: function for custom commands.
Read chapterLearn how to control the flow of your AutoLISP programs with if, cond, progn, while, and repeat. Discover comparison and logical operators.
Read chapterDiscover lists, the fundamental data structure of LISP. Learn how to create, traverse, and manipulate them with car, cdr, cons, list, and foreach.
Read chapterLearn how to make your AutoLISP programs interactive using the get* functions: collecting points, distances, angles, numbers, and text entered by the user.
Read chapterLearn how to create and modify AutoCAD entities in AutoLISP. Discover two approaches: command to simulate commands, and entmake/entmod to manipulate entities directly.
Read chapterLearn how to manipulate text files in AutoLISP: open, read, write, and search for files using open, read-line, write-line, close, and findfile.
Read chapterLearn how to handle errors in AutoLISP with the *error* function. Protect your programs from crashes and restore system variables when interrupted.
Read chapterExplore advanced AutoLISP concepts: symbols, quoting, anonymous lambda functions, and higher-order functions like mapcar and apply.
Read chapterLearn how to attach custom data to entities with xdata, store drawing-level information with extension dictionaries, and link entities together through their handles.
Read chapterLearn how to automatically respond to events in AutoCAD using reactors: monitor entity modifications, drawing saves, and user commands.
Read chapterLearn how to control external applications like Microsoft Excel from AutoLISP using ActiveX/COM interoperability. Export quantity takeoffs, generate reports, and automate your workflows.
Read chapter