entcheck
(entcheck ename)
The entcheck function verifies if the drawing entity specified by ename is (still) valid in the current drawing database.
Return Value
The function returns the entity name, if ename is valid for the current drawing database or is contained in a block definition of the current drawing; otherwise it returns nil.
: (setq x (entlast))
<Ename: 432f5700>
: (entcheck x)
<Ename: 432f5700>
: (entdel x)
<Ename: 432f5700>
: (entcheck x)
nil