vlax-object-released-p
 
 
 

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.

Arguments

obj

A VLA-object.

Return Values

T, if the object is released (no AutoCAD drawing object is attached to obj); nil if the object has not been released.

Examples

Attach a Microsoft Excel application to the current AutoCAD drawing:

_$ (setq excelobj (vlax-get-object
"Excel.Application"))
#<VLA-OBJECT _Application 00168a54>

Release the Excel object:

_$ (vlax-release-object excelobj)
1

Issue vlax-object-released-p to verify the object was released:

_$ (vlax-object-released-p
excelobj)
T