Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Console Tab
Topics:
Topic |
Detail |
See also |
---|---|---|
Abstract |
The script console is a tab of the Scripting window. It is a command line interpreter with which you can quickly enable a script engine and enter commands to act on the script. You type the commands in the field at the bottom of the tab; when you press the ( Enter ) key, the script console executes the commands and displays any output immediately. You can input two types of command:
|
|
Console Commands |
Console commands are preceded by the ! character and instruct the console to perform an action. The available console commands are listed below; to list these commands on the Console tab itself (as shown above) type ? in the console field (without the preceding ! character) and press ( Enter )
|
|
Script Commands |
A script command is script code that depends on the script engine. Script commands can be executed only once a script console has been created. Examples: The following lines, entered into the console, create a VBScript console and then execute the script MyScript in the user group MyGroup. >!VB >!i MyGroup.MyScript The following lines, entered into the console, create a JScript console and then create a variable called x with the value 1. >!JS >var x = 1 The following image shows the result of entering the above JScript example. Remember that you can use ?<variable name> to get the current value of any item you have created during the console session. |
|
Console Tab Toolbar |
The Console tab has two operations available through the toolbar:
|
|
Notes:
- This facility is available in the Corporate, Business and Software Engineering, Systems Engineering and Ultimate editions