Command


Execute an xtt command by clicking MB1 on the object.

Attribute                               Description
Command.Command                         Xtt command that is executed when the
                        object is activated.
Additions to the xtt command syntax

$object

$object will be replaced by the current object in an object graph
or by the stated hierarchy in an hierarchy graph.

$hostobject

A special syntax for HostObject dynamics where $hostobject will be
replaced by the current host object.

&(attribute-reference)

The string for an attribute reference of type &(attribute-reference)
will be replaced by the content of the attribute reference. Suppose
there is an array, H1-ObjectList.ObjArray, with attriute references
that points to objects, which object graphs is going to be shown.
With the command

> open graph /class /instance=&(H1-ObjectList.ObjArray[0])

the object graph is opened for the object in the first element. It is also
possible to state double steps of attribute references with the syntax
'&(&(attribute-reference))'.

Array index replacement
An Int32 or UInt32 attribute can be used as array index with the
syntax [&(integer-attribute)]. With the command

> open graph /class /instance=H1-Plates[&(H1-CurrentIndex.ActualValue)]

the index array of H1-Plates will be fetched from the current value of
H1-CurrentIndex.ActualValue.

Parent object references
The .< syntax will remove the preceding attribute in an attribute name.
H1-Plates.Data.<.CurrentIndex will result in H1-Plates.CurrentIndex.
This can be used in object graphs in combination with $object. For example

> open graph /class /instance=$object.<

will open the object graph for the object the contains the current object.

The -< syntax is similar but works for object hierarchies. H1-Pumps-P1<-
will result in H1-Pumps. This makes it possible to address parent objects
in hierarchy graphs. For example

> open graph /class /instance=$object-<

will open the object graph for the parent object.