Each element <node> defines a graphical element that can be added to the diagram. Nodes are the graphical representations of engineering objects.
Attribute name | Usage | Attribute values | Default value | Description |
---|---|---|---|---|
acceptedChildren | optional | IDREFS | A list of IDs and slaves, which can be added to the current node. | |
id | required | Unique ID of the action | ||
labelText | Only required for figureStickyNote | Text that represents the node in the tool palette | ||
router | optional | ID of a router | Specifies the router ID of the router, which shall be used for the current <node> element, if it has an own connection layer. | |
slaveNodes | optional | String | Formula,which returns a list of depending objects | |
super | optional | Id of a node from which the properties are inherited. | ||
valid | optional | Formula to determine whether an EO is represented graphically by the current node. The formula is compared with the EO | ||
verticalLinePosition | optional | 0 through 1 | 1 | If the container element supports the display of the cursor position, then this attribute defines to which page the cursor shall jump. 0 = West 0.5 = Center 1 = East |
Allowed sub-elements | Quantity |
---|---|
figureBase | 0..1 |
figureContainer | 0..1 |
figureEllipse | 0..1 |
figure-ganttContainer | 0..1 |
figureImage | 0..1 |
figureLabel | 0..1 |
figurePolygon | 0..1 |
figureStickyNote | 0..1 |
property | any |
slaveNode | any |
Configuration of a node that can be inserted into the diagram both as an existing instance from the project tree and as a new instance from the palette.
<!-- Inherits properties of "abstract_Buildingcomponent" -->
<node id="Floor" super="abstract_Buildingcomponent" valid="=isInstanceEO() and isInstanceOf('IT_Architecture.Levelcomponents.Floor')" acceptedChildren="Room">
<figurePolygon figure="com.mind8.graph2d.figure.container.Polygon">
<properties>
<property id="prefWidth">
<read value="2000" />
</property>
<property id="prefHeight">
<read value="2000" />
</property>
<property id="bendpointsCount">
<read value="4" />
</property>
<property id="bendpointsModifiable">
<read value="true" />
</property>
</properties>
</figurePolygon>
<property id="text">
<read value="=$Tooltip" />
<write key="value" receiver="=parameter('Number')" />
</property>
</node>
Explanation:
The validity of the node is checked using the attribute valid="=isInstanceEO() and isInstanceOf('IT_Architecture.Levelcomponents.Floor')". The term isInstanceEO() checks whether the node represents an instance from the project tree. The type of the project component is determined via the termand isInstanceOf('IT_Architecture.Levelcomponents.Floor').
f the attribute creation of the element <slaveNode> is set to the value byMaster (default setting!), then all slave nodes, which are instantiated outside the diagram, are placed in the diagram. The automatically placed slave nodes are indicated in the diagram with a separate border color, by expanding the configuration of the slave node with <property id="autoSlaveBoColor"> <read="RGB Value">.
<node id="Station" super="Component"
valid="=isInstanceOf('BodyShellWork_ModularSystem_V2.Mechatronic.RobotsStation')"
slaveNodes="=mos('BodyShellWork_ModularSystem_V2.Mechatronic.Robot')">
<figureImage figure="com.mind8.graph2d.figure.Image">
<properties>
<property id="img">
<read value="=type('BodyShellWork_ModularSystem_V2.Diagram_Configuration.Planning_Diagram.Register').image(this)" />
</property>
<property id="highlightBoColor">
<read value="0,255,0" />
</property>
</properties>
</figureImage>
<slaveNode id="slaveRobot" node="Robot" layout="outsideEdged" direction="=$diagramDirection" parent="=mc">
<movement rotateWithMaster="NO" rotate="NO" />
</slaveNode>
</node>
<node id="Robot" super="Station" valid="=isInstanceOf('BodyShellWork_ModularSystem_V2.Mechatronic.Robot')">
<figureImage figure="com.mind8.graph2d.figure.Image">
<properties>
<property id="highlightBoColor">
<read value="0,255,0" />
</property>
<property id="autoSlaveBoColor">
<read value="255,0,0"/>
</property>
<property id="img">
<read value="=type('BodyShellWork_ModularSystem_V2.Diagram_Configuration.Planning_Diagram.Register').image(this)" />
</property>
</properties>
</figureImage>
</node>
To show this, the demo model BodyshellWork is modified in a kind, that up to four robots are grouped as slaves around a robot station. The first figure below shows the robot station with two robots as the current state of the diagram.
With closed diagram, an additional robot is instantiated (1.) and then the diagram is opened again (see below).
The additional robot is docked as a slave to the RobotStation in the diagram without interaction (2.). To identify the added robot, the border is differently colored (in this example, red), as the previously existing robots. As the robot was inserted without additional interaction in the diagram, the chart is in the change condition (see Working in the editor area). Only when the diagram is stored, the robot is permanently inserted in the diagram and its border changes its color to the normal value.
To reset the frame color without saving the state of the diagram, the F6 key is to press.