HostObject is a dynamic that is used for subgraphs that is connected to components.
Components often contains several values that should affect the subgraph, and with
HostObject it is possible to program a complex dynamic that only requires that the user
makes one single connection to the component object.
Attribute
Description
HostObject.Object
Name of a database object.
The dynamic is programmed in graph attributes for the subgraph. Here subgraph is set to
1 and DynType1 is set to HostObject. HostObject.DynType1, HostObject.DynType2 and
HostObject.Action can now be used to set dynamics on the subgraph. The components that
will be connected to each intance is denoted '$hostobject'.
Fig Subgraph with default dynamics HostObject
Recursive dynamics
By default subgraphs inside other subgraphs can not contain dynamics, but by setting
RecursiveDynamics in graph attributes for the subgraph to 1, it is possible to use other
subgraphs as indicators and pushbuttons, and to use '$hostobject' to connect to the
component object.
In the example below, the three indicators are subgraphs of type pwr_indsquare. They are
connected to attributes in the component object with $hostobject syntax.
Fig Subgraph with recursive dynamics containing other subgraphs