Script template for model close scripts
There are no functions that are specifically for use with Model Close scripts.
Key:
Remarked variable names at the top of the file are available in all functions underneath except where stated.
Remarked variable names immediately above functions are only available in those functions (or subfunctions called).
The comment line '---Context change--- indicates that script is unloaded and reloaded here between function calls - this means that script scoped variables cannot be used to transfer data between functions separated by one of these comment lines, and other methods (such as helper dlls) should be used in the (fairly rare) situation that this is needed.
Option Explicit

'Studio(.DisplayOutputWindowMessage and .ClearOutputWindow)
'Projects
'ActiveProject
'Dictionary
'CurrentScript
'Note1: This is not in a transaction so do not do any model writes
'Note2: The Studio object is available but if the model is being closed
' because the GUI is being closed any user output will not be visible