The ( entdel) function deletes the named entity without picking. This function is often used to select an entity just drawn using the (command) function. The ( entlast) function returns the entity name of the last nondeleted entity in the drawing. See also What an entity definition list looks like with autolisp in AutoCAD You should always include a (setq) in front of the entity selection tools so you can access the entity again.Ename is a new datatype made of a list of the entity name and a point list.What function can be used to determine the data type of what ( entnext) returns?.If there is no next entity, ( entnext) returns nil. If ( entnext) is used with the optional ename argument, it will give the entity name of the first nondeleted entity following ename in the drawing. The ( entnext) function, if called with no argument, returns the entity name of the first nondeleted entity in the drawing. In most cases you will be running a loop that will go through a specified selection of entity names and you won’t even see it happen.
There are several methods of selecting entity names, depending on which object you want. This entity name is stored in an entity definition list. To do this, we need to select the entity name of an object.
#Autocad lisp how does one select entlast how to#
In this section we will see how to select and change individual objects from AutoCAD’s database without having to select them at a command prompt.