This functionality is only available for certain module packages.

You are here: Tutorial > GRAPH2D discipline > Commands for inserting Floor and Room from the project tree

Commands for inserting Floor and Room from the project tree

The project already contains all the components that are to be inserted in the diagram.

For every node that represents a project component, a command is required, which is executed upon dragging a component from the project tree into the diagram.

  1. Under the configuration of the node for Room, add the following lines for the commands.
<!-- Commands -->
<!-- Commands to create nodes out of the project tree -->
<command xsi:type="createNodeForInstance" src="=isInstanceOf('IT_ModularSystem.Buildingcomponents.Floor')" id="add_Floor" />
<command xsi:type="createNodeForInstance" src="=isInstanceOf('IT_ModularSystem.Buildingcomponents.Room')" id="add_Room" />
  1. Save the diagram configuration ([Ctrl] + [S]).