Может быть, сейчас это можно сделать и проще, но когда-то в ?Point A? рекомендовали поступать так:
You should be able to bypass AutoCAD's prompt to save drawings by using a couple
of different techniques. You can catch the AutoCAD close notification within a
beginClose() Editor Reactor notification handler, and set the DBMOD AutoCAD
variable to 0 for each open drawing. When a document is closed however, the
Save Drawing warning dialog has to be caught just prior to being displayed, at
which point we can again set the DBMOD variable(s), cancel the dialog, and
re-issue the command which was originally called to finally close the document.
This second technique requires setting a Windows CBT (Computer Based Training)
hook, which is relatively simple.
Under normal circumstances, the DBMOD variable (which is non-zero when its
database requires saving) is READ-ONLY, and cannot be modified, however there is
an undocumented (and unsupported) API you can use to change its value called
'acdbSetDbmod()', which is in acdb15.lib. Use this API with extreme caution, as
it can lead to data loss if improperly used. With this app loaded, you will
never get the opportunity to save any drawings if you close them, or exit
AutoCAD, so again, extreme care is needed when using it.