Functions for controlling the user interface (automation interface)
The exposed automation interface allows client applications to manipulate the Modeler user interface.
Using these functions you can control the Modeler user interface as follows:
• Control the Modeler window - show, hide or move it, or make it active.
• Open models or get the model reference of the active model.
• Open diagrams, select symbols, scroll options and the zoom setting.
• Select items in panes.
• Display messages in the Output pane and clear its content.
• Get item ids from the Results panes, add items to the Results panes and clear the content of the Results pane.
• Refresh the Modeler views.
To access Modeler from external applications, create a root object as in the example that follows:
Dim RTS As Object Set RTS = CreateObject("Studio.Editor")
The supplied traffic light example is a Microsoft Visual Basic program that makes use of some of these functions. We recommend that you review the source code for the traffic light program so that you can learn how these functions work together.
Automation Interface functions for controlling the Modeler window: