The scripting language is useful for setting up complex structures and doing advanced data analysis. See the Scripting chapter for a list of all the script commands, as well as examples on how to use them.
By default the script editor is located on the right hand side of the view ports and shares the same frame as the analysis window. When both windows are open, it is possible to toggle between the two through tabs located at the right side of the frame. The script file editor contains buttons to create, open, save and run script files. When multiple script files are open, pressing on the run script button runs the one in the forefront. Note that when entering scripting code in the script file editor, each command must be followed with a semicolon.
When running a script file in the a different directory using the GUI, the current working directory is unchanged, but the directory of the script file is added to the scripting path. This way, any files called by that script will be found. However, the search order is the current directory first, then any other folders in the path, and then the directory of the script file.
By default the script prompt is located at the bottom of the CAD window. Script commands are executed as soon as the ENTER button is pressed on the command line. If a semicolon is missing at the end of the command line, it is automatically inserted it for you. Multiple lines can be pasted into the script prompt, and will run as in the script editor. In this case though, only the last semicolon can be neglected.
OPEN: Open a script file (.lsf)
SAVE: Save the current file
SAVE AS: Save the current file and specify the file name
RUN SCRIPT: Run the current script file
A number of additional options can be found by right clicking within the script file editor window. For example, F9 will run the currently selected portion of script. Auto-indenting, changing font sizes, etc are also available.