Für jedes Gerät und die Person wird jeweils noch ein Command benötigt, der beim Ziehen einer Komponente aus dem Projektbaum in das Diagramm ausgeführt wird.
- Erweitern Sie die Konfiguration für die Commands um die letzten Sieben Zeilen.
<!-- 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" />
<command xsi:type="createNodeForInstance" src="=isInstanceOf('IT_ModularSystem.Roomcomponents.PC')" id="add_PC" />
<command xsi:type="createNodeForInstance" src="=isInstanceOf('IT_ModularSystem.Basic.LAN_Jack')" id="add_LAN_Jack" />
<command xsi:type="createNodeForInstance" src="=isInstanceOf('IT_ModularSystem.Roomcomponents.Telephone')" id="add_Telephone" />
<command xsi:type="createNodeForInstance" src="=isInstanceOf('IT_ModularSystem.Roomcomponents.Printer')" id="add_Printer" />
<command xsi:type="createNodeForInstance" src="=isInstanceOf('IT_ModularSystem.Roomcomponents.2wayLANJack')" id="add_2wayLANJack" />
<command xsi:type="createNodeForInstance" src="=isInstanceOf('IT_ModularSystem.Roomcomponents.5waySwitch')" id="add_5waySwitch" />
<command xsi:type="createNodeForInstance" src="=isInstanceOf('IT_ModularSystem.Roomcomponents.Worker')" id="add_Worker" />
- Speichern Sie die Diagrammkonfiguration ([Strg] + [S]).