DocActivated

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

This event is triggered when the user switches to a different open AutoCAD drawing. Note that opening a new drawing will not trigger any event. An application that uses modeless dialogs must be installed so that its code is loaded into each newly created drawing document, and the application's initialization code must check for already active dialogs that it must manage.