Templates are used to set the same properties and binding parameters to many controls or equipment.
Templates can be accessed from the Project Explorer Panel.
Create a new Template by using Right click over the Template group and select the Type of template to create, either Equipment or Control. Select the Target Type for this Template (Equipment or Control group).
A template can be defined with any number of properties and any number of bindings. By using a Template in the Equipment or Control properties, it allows the user to apply those properties and bindings on all equipment or controls of that Target Type.
At a later date, should those properties or binding need to change then a single change to the Template allows the changes to be applied quickly.
A Control Target Type Template allows the user to select one of the 2D Control objects;
An Equipment Target Type Template allows the user to select one of the 3D Equipment objects;
When the Property Editor Panel for a Template is opened it is divided into two sections;
Static
The Static section contains all the properties and values that this Template controls for the selected Target Type. When the user selects Add to add another property they are able to select from a list of all the properties for the object, excluding the properties already selected.
Binding
The Binding section contains all the bound properties for the selected Target Type. When the user selects Add to add another property they are able to select from a list of all the properties for the object, excluding the ones already selected.
Whenever the variable %this.Name% is used in tag expressions, at runtime it is expanded to the Name of the equipment or control.
The variable %this.Alias% can also be used to expand to the Alias of the equipment or control.
Many Basic Shapes can be animated with their colors using matching tags. An example of this is;
0 = Sym3 Black
1 = Sym3 Yellow
2 = Sym3 Blue
3 = Sym3 Transparent
When the Project is published and launched, entering a value into each Numeric Display will cause the Basic Shapes bound to the Numeric Display (through the Alias) to change the color to the color mapped in the template.