In the diagram configuration, the <command> tag can be used in connection with the following name-space expansions to define which components from the project tree may be inserted via drag and drop, which components from the palette may be instantiated, and which components may be moved from one superordinate component to another:
- Command for inserting from the project:
<command xsi:type="createNodeForInstance">
- Command for inserting from the modular system:
<command xsi:type="createNodeForClass">
- Command for instantiating from the palette:
<command xsi:type="instantiateAndCreateNode">
- Command for moving a component from one superordinate component to another:
<command xsi:type="changeInstanceParent">
- which graphical objects may be dragged from one diagram into another (request="Change_parent" attribute).
<command source="=isClassEO() and (absoluteName='Rohbau_Baukasten.Mechatronik.Schutzkreis')"
target="Diagram"
request="Drop_and_instantiate" />
Example code for the definition of an element that may be dragged into the diagram:
<command source="=isInstanceOf('Rohbau_Architektur.Ebenenkomponenten.Schutzkreis')"
target="Diagram"
request="Drop_at_target" />
Example code for the definition of an element that may be dragged from one diagram into another:
<command source="=isInstanceOf('Rohbau_Baukasten.Mechatronik.Roboter')"
target="=isInstanceOf('Rohbau_Architektur.Ebenenkomponenten.Schutzkreis')"
request="Change_parent" />