Customization > Automation Interface > Functions > For User Interface > Functions for controlling the user interface (automation interface)
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:
Automation Interface functions for working with models:
Automation Interface functions for working with diagrams:
Zoom
Automation Interface functions for working with Modeler panes:
All panes:
Dictionary pane:
Diagram pane:
Output pane:
Results panes:
Text output pane:
Automation Interface functions for refreshing the Modeler views:
Automation Interface functions for opening the Select Object dialog in context of a Stereotype:
Automation Interface functions for working with the Model Selection dialog:
Automation Interface functions for working with the Links Editor dialog:
Automation Interface functions for working with a text editing window or Code Editor window:
Automation Interface functions for working with Model Differencer:
Was this helpful?