ObjectDCL Banner

OnDocActivated Event

Description

Indicates that the form is reacting to a change in the active AutoCAD DWG document.

AutoLISP Syntax

Each dialog that throws this event has its handler that takes this generic form:

CopyCode imageCopy Code
(defun c:FormName_OnDocActivated ()
     
)

Applies For

Dockable, Modeless.

Example

CopyCode imageCopy Code
; React to the change in active document
(defun c:MyForm_OnDocActivated ()
     (princ "OnDocActivated\n")
)