Message 1 of 6
QUIT event

Not applicable
11-02-1999
08:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The AutoCAD R2000 application object has a BeginQuit event but not an
EndQuit.
If you use the BeginQuit event to trigger a quitting sequence then the next
thing that happens is that the document object asks whether the user wants
to save the file or not. If the user says Cancel then the BeginQuit event
will have been in vain.
It is no good checking how many documents are open because AutoCAD can be
running
without any drawing being open!
A solution would be to have a timer check whether AutoCAD is running, but
this doesn't seem very elegant given the fact that AutoCAD does trigger
events.
So the question is how to trigger an event when AutoCAD has actually shut
down.
EndQuit.
If you use the BeginQuit event to trigger a quitting sequence then the next
thing that happens is that the document object asks whether the user wants
to save the file or not. If the user says Cancel then the BeginQuit event
will have been in vain.
It is no good checking how many documents are open because AutoCAD can be
running
without any drawing being open!
A solution would be to have a timer check whether AutoCAD is running, but
this doesn't seem very elegant given the fact that AutoCAD does trigger
events.
So the question is how to trigger an event when AutoCAD has actually shut
down.