Basic Template

Here we create a basic template. After the template is configured, you can create multiple instances of it throughout your project.

To create a Basic Template

  1. In the Project Browser, right-click Templates and select New Template.

    images/download/thumbnails/1704380/image2015-6-10_15_38_43.png

    A checkered box is displayed in the design space where you design your template. The checkered box means that the template is completely transparent. You can set a background if you want.

  2. Right-click on New Template and click Rename to change its name to something else, lets say Motor.

    images/download/thumbnails/1704380/image2015-6-10_15_40_45.png

  3. Right-click on the checkered-box and select Customizers > Custom Properties.

    images/download/attachments/1704380/image2015-6-11_11_30_37.png

    The Custom Properties window is displayed. Here you can set both the Template Parameters and Internal Properties. Template parameters appear on each template instance, allowing each instance to be configured differently, this is some sort of an indirection variable. Internal properties show up when designing the template master, but they do not show up on the template instances.

    Each template needs at least one Template Parameter property so that it can exist on every instance you put on the screens. Then each instance can bind the parameter property to a tag.

  4. In the Custom Properties window, click the + icon in the Template Parameter area to add the values.

  5. Enter the following and click OK.
    Name: value
    Type: Integer
    Drop Target: select the check box

  6. Go to the checkered area of your template, from the Symbol Factory and Component Palette drag one or a few components such as a motor, a label, and a Level Indicator.

  7. Resize the checkered area to fit all your components, and not larger, to remove all the unusable space.

    Now we need to link one of the components, lets say the Level Indicator, to the Template Parameter value we created earlier.

  8. Select the Level Indicator and go to the Property Editor, click on the binding icon for the Value property.
    The Property Binding window is displayed.

  9. Click the Property button, choose the value property, and click OK.

You now have configured a motor template, with a parameter property called value with an integer data type. Use this template to create many instances of it in your project.