How to run scripts

In a script you can type map names, table names and column names directly in the expressions, but you can also use parameters that replace (parts of) object names, operations, etc. The procedure to run a script with parameters is different from the one without parameters.

To run a script without parameters:

The script will be executed immediately.

To run a script with parameters:

The Run Script dialog box will appear.

In the Run Script dialog box, all parameter names are listed as specified on the Parameters tab of the script editor.

When the OK button is clicked and when all parameters are correctly specified, the script will be executed.

You can create your own Help for a script so that you can explain the meaning of parameters to other users of the script. For more information, see the Run Script dialog box.

To skip the Run Script dialog box:

Type on the command line of the Main window:

where:

scriptname is the name of your script
parameter is the name of an ILWIS input object, or an output object, as objectname.ext

When all parameters are correctly filled out on the command line, the Run Script dialog box will not appear, and the script will be executed immediately:

Notes:

See also: