entlast

(entlast)

The entlast function returns the entity name of the drawing entity most recently added to the current drawing database.

Examples

: (setq en (entlast))

: (entget (entlast))

: (entdel (entlast))