EnteringNoDocState

Function Name c:<CONTROL-NAME>#OnEnteringNoDocState
Syntax   (defun c:<CONTROL-NAME>#OnEnteringNoDocState (/)
)
Return Type Ignored
Applies To Control Bar, Modeless Dialog, Palette

This event is triggered when the user closes the last open AutoCAD drawing. If any of the modeless dialog's controls are dependent on the state or contents of the current drawing file, they should be cleared at this time. Once the drawing is closed, no AutoLISP code can execute since there is no document context for it to execute in; this event handler will be the last opportunity to execute code until a new document is opened.