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

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@entercad.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.