From the course: Learning AutoLISP & Visual LISP

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Function and command: vl-cmdf

Function and command: vl-cmdf - AutoCAD Tutorial

From the course: Learning AutoLISP & Visual LISP

Start my 1-month free trial

Function and command: vl-cmdf

- [Teacher] Although we're going to talk a lot about how to use LISP for modifying and even the creation of graphic objects, lines and arcs. What we're going to focus in on in this chapter is that we can simply call commands and kind of put our commands together. We can make changes to commands or some of the variables before we call commands. And so, how do we call a command inside of LISP? Well let's go ahead and create a new function, and we'll call this function something such as VLCMDS. We're not going to provide it any arguments at this point as regards local variables. We are going to do some visual LISP calls. And so notice that we always include our VL-LOAD-COM. And I need to just close out my defined function. Once I do that, we're going to have this function that we're creating, our named function, simply call a fillet it command and create five inch or five foot radius fillets. So we first have to set our variable, FILLETRAD to five. And then we're going to call the…

Contents