From the course: Learning AutoLISP & Visual LISP

Unlock the full course today

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

Visual LISP entity functions

Visual LISP entity functions - AutoCAD Tutorial

From the course: Learning AutoLISP & Visual LISP

Start my 1-month free trial

Visual LISP entity functions

- [Instructor] We've looked at a few Visual LISP functions so far. But this is where we're really going to see Visual LISP functions shine. Being able to work with objects and not have to learn so many of those group codes, but to be able to get the Visual LISP version of this object, we have to convert the object that we get. So first, let's get our object using the EMTSEL. We select our line. And, of course, the result is that LIST with the entity name. We're going to take that entity name and convert it to a Visual LISP object. We do this using a very long function name. But it explains itself as you look at it. So we get the first object in the list, CAR ENTOBJECT. Here is how we convert a entity name, e-name. And you see the arrow. It converts it or makes it a VLA, or Visual LISP object. So let's go ahead and convert it over. And it will be stored in the VL-OBJ variable. So now, we have a line. We have no group codes or dotted pairs that we have to figure out. And it's just as…

Contents