Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

AutoLISP

< >

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

#774on PLDB 38Years Old
Wikipedia

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 Example Token
Strings ✓ "Hello world" "
View source
- Build the next great programming language · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements · Part of the World Wide Scroll