Determines if an object has been released
(vlax-object-released-p obj)
NoteErasing a VLA-object (using command ERASE or vla-erase) does not release
the object. A VLA-object is not released until you invoke vlax-release-object on
the object, or normal AutoLISP garbage collection occurs, or the drawing
database is destroyed at the end of the drawing session.
T, if the object is released (no AutoCAD drawing object is attached to obj); nil if the object has not been released.
Attach a Microsoft Excel application to the current AutoCAD drawing:
_$ (setq excelobj (vlax-get-object "Excel.Application"))
#<VLA-OBJECT _Application 00168a54>
_$ (vlax-release-object excelobj)
1
Issue vlax-object-released-p to verify the object was released:
_$ (vlax-object-released-p excelobj)
T