Customization > Extensibility Through Profiles, Stereotypes, Tag Definitions and Scripts > Advanced extensibility through stereotype scripts and script items > Extending model open and close behavior > Overview of extending model open and close behavior through stereotypes and scripts
  
Overview of extending model open and close behavior through stereotypes and scripts
You can set up a Model so that script is run whenever that Model is opened in Modeler. You can also set up script that is run whenever the Model is closed from Modeler.
The Model Open and Model Close scripts are used for initializing ergonomic profiles in a Model.
You can apply Model Open and Model Close scripts to a model through Stereotypes or Scripts. If a model has scripts applied by both Script items and Stereotypes, the Stereotype applied scripts are run first.
* 
The Model Open and Model Close scripts do not run in a transaction, so the script should not display any user interface or make any changes to the Model.
* 
If you import a Script item in to a Model and that Script item has Model Open script, the Model Open script is run on import.