Questions Concepts
GitHub icon

AutoLISP

AutoLISP - Programming language

< >

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

#296on PLDB 37Years 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 · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Traffic · Traffic Today · Day 305 · feedback@pldb.com · Logout