Hi Peer, sorry no there isn't any mechanism currently set up for a script to be run at shutdown time.
One way to avoid PromptSaveChanges from being shown is to all moi.exit( true /* NoQuerySaveChanges */ );
or also another way is if you clear the current content using moi.geometryDatabase.fileNew( true /* NoQuerySaveChanges */ );
Otherwise the way that PromptSaveChanges will be shown is when the last saved revision number is smaller than the current geometry database revision number.
- Michael
|