(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...
(entget entity-name [application-list])