Indicates, that the palette element creates an engineering object.
Attribute name | Usage | Attribute values | Default value | Description |
---|---|---|---|---|
command | required | Unique name of a command, that can be referenced. |
Allowed sub-elements | Quantity |
---|---|
none |
The following example configures the entry for safety circuit in the palette. The element <eoCreation> specifies, which command is to be executed. To establish the relation to the command, this is included in this example.
<paletteEntry id="SafetyCircuitCreation"
group="Components"
text="SafetyCircuit"
smallIcon="=type('BodyShellWork_ModularSystem.Diagram_Configuration.
Planning_Diagram.Palette_SafetyCircuit_ObjectCreation').getImage"
largeicon="=type('BodyShellWork_ModularSystem.Diagram_Configuration.
Planning_Diagram.Palette_SafetyCircuit_ObjectCreation_24').getImage">
<eoCreation command="command3"/>
</paletteEntry>
<command xsi:type="instantiateAndCreateNode"
src="=isClassEO() and (absoluteName='BodyShellWork_ModularSystem.Mechatronic.Robot')"
eoClassPath="BodyShellWork_ModularSystem.Mechatronic.Robot" id="command3"/>
Result:
In the palette for the planning diagram the safety circuit is shown with a small icon and the name of the library component.