Script


Execute an xtt script by clicking MB1 on the objectj, or when the graph is opened or
closed.

Attribute                               Description
Script.TriggerEvent                       Event that trigger execution of the script.
                          ClickMB1, when MB1 is clicked.
                          Open, when the graph is opened.
                          Close, when the graph is closed.
Script.Arguments                        Arguments that can be used as p1-p9 in the script. The arguments
                          will be translated as a commmand (see action Command), for example
                          $object is replace by the current instance for an object graph.
Script.Script                           Xtt script that is executed when the
                          object is activated.
Scripts can use extern variables to store status values and for interaction between
scripts. The extern variables can be declared in a script triggered by the Open event,
and deleted in a script triggered by the Close event.

Extern variables can also be used in object graphs, where several object graphs can be
opened concurrently. Mix-up of the variables is avoided by setting the namespace for
extern variables to the instance object name. Supply the instance object as argument and
set the namespace with set_namespace(p1).