Message 1 of 1
AcadDocument Activate
Not applicable
04-28-2009
09:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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