Requirements
A script collection is made up of the following files:
- XML file that defines a script collection. The XML file contains the definition of the collection itself and the definitions of the commands contained in the collection.
- Tcl files that contain the actual scripts. These files need to meet the following requirements:
- They are Tcl scrips.
- The files contain only procedures. They do not contain any commands that are carried out at loading the script file.
- To avoid naming conflicts, for a command CMD_NAME you you should stick to the following naming conventions:
Command_CMD_NAME
- Store the Tcl files in the same directory as the collection file (*.xml) or in a subdirectory of it.
- Nonmandatory: PNG icon files for individual collection or command icons on the VA GUI. The PNG files need to meet the following requirements:
- They need to contain a square image.
- The minimum resolution is 16 x 16.
- Store the icon files in the same directory as the collection file (*.xml) or in a subdirectory of it. If you don't provide an icon file, a default icon will be used for representation in the GUI.
|
Plain Text Files Only |
|
|
|
All files required for a working script collection are plain text files. This allows you to store your script collection definitions in version control systems. |
You need to specify the location of the script collection definition files (XML files) in Visual Applets. All collection-defining XML files need to be stored in the same directory.
To set the path to your script collection directory:
- From menu Settings, select System Settings.
- Select tab Paths.
- Under Script Collection, specify the path to the directory where you store the collection-defining XML files you want to use.
The default setting is <VA installation directory>/ScriptCollection.
|
For each script collection you define via GUI, an according XML file is written into the specified directory. If you add new collection-describing XML files to the directory or edit existing XML files stored there, your changes will be visible on the VisualApplets GUI. 1 |
|