Learn the fundamentals of LISP for AutoCAD, so that you can start using this language to simplify monotonous tasks and ease the implementation of standardization.
Overview
Syllabus
Introduction
- Welcome
- Exercise files
- History
- Visual LISP IDE
- Creating a defined function
- Creating and using variables
- Getting and setting variables
- Using an if condition function
- Using a cond condition function
- Function: vl-Load-Com
- Function: vlax-get-acad-object
- Function: vla-get-preferences
- Function: vla-get-activedocument
- Function and command: vl-cmdf
- Function: strcase
- Function: strcat
- Function: strlen
- Function: substr
- Visual LISP methods
- List and dotted pairs overview
- Functions: nth and length
- CDR, CAR, CADR, and more
- Function: append
- Function: subst
- Visual LISP methods
- Function: getstring
- Function: getpoint
- Function: getdist
- Function: getreal
- Functions: getkword and initget
- Functions: entsel and entget
- Funtion: getfiled
- Function: while
- Function: repeat
- Function: foreach
- Function: ssget
- Functions: sslength and ssname
- Selection set filters
- Function: polar
- Function: angle
- Function: distance
- Function: inters
- Functions: assoc and subst
- Function: subst
- Function: entmod
- Function: entmake
- Function: entdel
- Visual LISP entity functions
- Function: tblsearch
- Function: tblobjname
- Visual LISP methods
- Function: namedobjdict
- Visual LISP dictionary functions
- Reading and writing to the registry
- Loading a LISP file
- Using acad.lsp and acaddoc.lsp
- Error trapping
- Next steps
Taught by
Josh Modglin