AcadDocument Activate

AcadDocument Activate

Anonymous
Not applicable
493 Views
0 Replies
Message 1 of 1

AcadDocument Activate

Anonymous
Not applicable
I am trying to trap certain commands in Acad 2004 depending on whether an Xdata flag is present within a drawing. I am trying to use the AcadDocument_Activate event to test the document and set a public variable depending on the flag presence. The problem appears to be that the Activate event is not triggered if the user opens the drawing, and AutoCAD together, by double-clicking the file name in Windows Explorer, when AutoCAD is not already open. Opening a drawing file through various means, with AutoCAD open, triggers the Activate event just fine.

The BeginOpen application event also seems to behave in the same way. One can easily test this behavior with simple MsgBox code.

Is there any way to force these events to fire in ALL circumstances? Am I missing something?

Regards,

Dan Fisher
0 Likes
494 Views
0 Replies
Replies (0)