Customization > Automation Interface > Functions > For User Interface > Functions for controlling the user interface (automation 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:
HideMainWindow
MoveMainWindow
ShowMainWindow
SetForegroundWindow
Automation Interface functions for working with models:
GetCurrentModelReference
OpenModel2
Automation Interface functions for working with diagrams:
CloseAllWindows
CloseDiagram
IsDiagramLocked
LockDiagram
OpenDiagram
SelectSymbol
SelectSymbol2
SetScrollOption
Zoom
Automation Interface functions for working with Modeler panes:
All panes:
SelectBrowserItem
RenameBrowserItem
Dictionary pane:
SelectDictItem
Diagram pane:
SelectDiagram
Output pane:
ClearOutputWindow
DisplayOutputWindowMessage
Results panes:
AddToResultsPane
ClearResultsPane
GetResultsPaneItem
GetResultsPaneItemCount
Text output pane:
AddOutputPane
ClearOutputPane
DisplayOutputPaneMessage
RemoveOutputPane
Automation Interface functions for refreshing the Modeler views:
Refresh
Automation Interface functions for opening the Select Object dialog in context of a Stereotype:
SelectObjectOfStereotype
SelectObjectOfType
Automation Interface functions for working with the Model Selection dialog:
ArtisanModelFileDialog COM object
ModelExplr
Automation Interface functions for working with the Links Editor dialog:
EidtItemLinks
Automation Interface functions for working with a text editing window or Code Editor window:
CloseTextEditor
CloseAllWindows
OpenTextEditor
Automation Interface functions for working with Model Differencer:
DiffModel
DiffPackage