Top 1,000 Features Creators Resources Blog Explore Download
GitHub icon

AutoLISP

< >

AutoLISP is a programming language created in 1986 by David Betz.

#611on PLDB 38Years Old

AutoLISP is a dialect of the LISP programming language built specifically for use with the full version of AutoCAD and its derivatives, which include AutoCAD Map 3D, AutoCAD Architecture and AutoCAD Mechanical. Neither the application programming interface nor the interpreter to execute AutoLISP code are included in the AutoCAD LT product line.. Read more on Wikipedia...


Example from hello-world:
(alert "Hello World")
Example from Wikipedia:
1 (defun c:pointlabel ( / pnt ) 2 (if (setq pnt (getpoint "\nSpecify point: ")) 3 (progn 4 (entmake 5 (list 6 '(0 . "POINT") 7 (cons 10 (trans pnt 1 0)) 8 ) 9 ) 10 (entmake 11 (list 12 '(0 . "TEXT") 13 (cons 10 (trans (cons (+ (car pnt) 0.6) (cdr pnt)) 1 0)) 14 (cons 40 (getvar 'textsize)) 15 (cons 1 (strcat "X:" (rtos (car pnt)) " Y:" (rtos (cadr pnt)))) 16 ) 17 ) 18 ) 19 ) 20 (princ) 21 )

Language features

Feature Supported Token Example
Strings ✓ "
"Hello world"
Lispy ✓

View source

- Build the next great programming language · About · Acknowledgements · Extensions · Day 624 · feedback@pldb.io