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.

Function: entmake

Function: entmake - AutoCAD Tutorial

From the course: Learning AutoLISP & Visual LISP

Start my 1-month free trial

Function: entmake

- [Instructor] To create any new object, we simply have to provide the same arguments, the same information to a Lisp function called ENTMAKE as we would if we were working with that object in the command. What do I mean? Well, when we create a command, or we call the line command, what is it prompting us for? It's prompting us for the start point and the end point. If we create an arc, it's looking for some information to be able to create that arc, the start point, end point, center, and some type of value, their radius, something similar to that. A circle, center point, radius or diameter. Similar to what we are being prompted at the command line will be the list that we have to provide to the ENTMAKE. In this case, we are going to create a line. Let's go ahead and get our start point and end point, our start point and our end point. What's returned are, of course, lists with the three numbers representing our X, Y, and Z coordinates, and then we're just going to apply, and let's…

Contents