Customization > Automation Interface > Functions > For User Interface > Functions for Models > OpenModel function (automation interface)
OpenModel function (automation interface)
Syntax:
OpenModel("<name>")
Where:
<name> is a string that specifies the name of the model to open.
OpenModel opens a model using its Name property. The function returns a Boolean value to indicate success or failure. If you are mapped to Models that have the same names, you may want to use the OpenModel2 function that allows you to specify the Model name and directory.
Examples
In this example, Modeler opens the Filling Station model.
Call Studio.OpenModel("Filling Station")
Was this helpful?