Hi there, I've a simple question

How do I accomplish that task?
"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."
I've a modeless dialog with that inside the code
(defun c:cordoli/cordoli#OnInitialize (/)
....
)
When I switch to another drawing it will be very cool if i dind't have to reload the *.fas
I've tried with that but of course it doens't work and I don't get how to check the already active dialogs :S
(defun c:cordoli/cordoli#OnDocActivated (/)
(c:cordoli/cordoli#OnInitialize)
)
Thank for your help !
Dennis