(entnext [entity-name])


Get the next entity in the drawing.


This function returns the name of the first non-deleted entity in the database if no arguments are supplied. If an entity name is supplied, entnext returns the next entity following the given entity-name. When there is no next entity in the database, entnext returns nil.

Examples

Code Returns

(setq a (entnext))

<Entity name: 1fe0540>

(setq b (entnext a))

Entity name following entity a

Tell me about...

(entdel entity-name)

(entget entity-name [application-list])

(entlast)

(entmake [entity-list])

(entmod entity-list)

(entsel [prompt])

(entupd entity-name)

(nentsel [prompt])

(nentselp [prompt] [point])

(setq symbol1 statement1 [symbol2 statement2] ...)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language