Simple connections serve to depict 1:1 references between two nodes, e.g. parent-child references.
This is illustrated using the example of two roller conveyors in the ‘Bodyshell work’ demo model. In the planning diagram, a reference from parent SK1RLB1 (1) to child SK1RLB2 (2) is represented by a green arrow.
The parent node stores a reference to the child node in the Child parameter, and the child node stores a reference to the parent node in the Parent parameter (see connection).
<reference id="ReihenfolgeReferenz" type="connectable" src="=isInstanceEO()
and isInstanceOf('Rohbau_Architektur.Ebenenkomponenten.Funktion')"
target="=isInstanceEO() and
isInstanceOf('Rohbau_Architektur.Ebenenkomponenten.Funktion')">
<forward multiplicity="*" connector="=getParameter('Nachfolger')"/>
<backward multiplicity="*" connector="=getParameter('Vorgänger')"/>
</reference>
<connection id="Reihenfolge" reference="ReihenfolgeReferenz"
width="3" style="1" color="17,240,70"
sourceDeco="empty"
targetDeco="filled-arrow"/>
Connections between nodes can be created both manually and automatically.
Creating connections manually:
- Select a palette entry for ‘Connections’ (Order in the above screenshot)
- Click the first node.
- Click the second node.
Connections can be created continuously by simultaneously holding down [SHIFT].
Creating connections automatically:
If the ordering of the nodes derives, for example, from the ordering of the corresponding project components in the model structure, the connections are automatically inserted into the diagram.