In this tutorial, Josh Modglin walks through the creation of a defined LISP function within AutoCAD’s VisualLisp Integrated Development Editor. The instructor discusses the format of the custom defined LISP function, the LISP functions used per line of code, and the overall structure of the code. In addition, Josh demonstrates creating a LISP function, saving, and loading it within an AutoCAD drawing.
- [Instructor] We're going to create a simple LISP routine…which will greet our users.…And to do this, let's create a visual LISP file.…So I'm going to use the Visual LISP Editor…from the Manage ribbon Applications panel,…and we're going to create a new LISP file.…We're going to create a custom function named greetusers…and then I'll close it out.…And so this is an auto LISP function.…
We are creating or defining a custom function,…and notice we've closed it out already…with parentheses calling greetusers.…To greet the users, we need to know the username.…So let's get the username from…an AutoCAD application variable.…We're going to store the username in a defined variable…that we can call later.…We'll name that variable username.…And so what we have on this line, setq means we're creating…or setting a variable.…
The variable name is username.…The variable value is what is returned from the AutoCAD…LISP routine function called getvar or get variable.…This function needs to know the variable name…which we've provided as a string,…
- Using variables and profiles
- Customizing AutoCAD templates with styles and layer properties
- Using dynamic blocks
- Customizing the AutoCAD interface
- Creating custom tool palettes
- Creating and editing scripts
- Adding custom symbols
- CAD programming with LISP
Skill Level Intermediate
Cert Prep: AutoCAD Certified Professionalwith Shaun Bryant4h 40m Appropriate for all
Designing Dynamic Blocks in AutoCADwith Scott Onstott1h 5m Intermediate
1. Customizing Options
2. Drawing Templates
3. Dynamic Blocks
4. Customizing User Interface
5. Tool Palettes
7. Custom Symbols
8. LISP for CAD Managers
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.