This functionality is only available for certain module packages.

You are here: Tutorial > GRAPH2D discipline > Commands for moving the nodes

Commands for moving the nodes

To end the Tutorial for the Graph2D diagram, commands are to be added to be able to move the rooms between floors, and devices and persons between the rooms.

  1. Extend the configuration for the commands with the following lines.
<!-- Commands to move nodes between rooms and rooms between floors -->
<command xsi:type="changeInstanceParent" src="=isInstanceOf('IT_ModularSystem.Buildingcomponents.Room')" id="move_Room" />
<command xsi:type="changeInstanceParent" src="=isInstanceOf('IT_ModularSystem.Roomcomponents.PC')" id="move_PC" />
<command xsi:type="changeInstanceParent" src="=isInstanceOf('IT_ModularSystem.Roomcomponents.Telephone')" id="move_Telephone" />
<command xsi:type="changeInstanceParent" src="=isInstanceOf('IT_ModularSystem.Roomcomponents.5waySwitch')" id="move_5waySwitch" />
<command xsi:type="changeInstanceParent" src="=isInstanceOf('IT_ModularSystem.Roomcomponents.Printer')" id="move_Printer" />
<command xsi:type="changeInstanceParent" src="=isInstanceOf('IT_ModularSystem.Roomcomponents.Worker')" id="move_Worker" />
<command xsi:type="changeInstanceParent" src="=isInstanceOf('IT_ModularSystem.Roomcomponents.2wayLANJack')" id="move_2way_LANJack" />
  1. Save the diagram configuration ([Ctrl] + [S]).