Template Composition
Template Composition
Watch the videoTemplates Within Templates
You can embed templates inside of other templates. The nested template behaves like a component. This can be useful if the project can be broken down into many similar, small parts. Instead of building a template for a tank with a guage, a motor with a guage, and a compressor with a guage, it might instead be better to first build a simple guage template that can then be added to each of three templates so that it already is setup correctly.
To Nest a Template Inside Another Template
Drag an existing template from the Project Browser into the template that you are currently working on.
Bind the nested template properties to the properties located on the parent template's Custom properties such as UDT parameters.
I can easily use an indicator template that I made to display values from a motor template, or values from a tank template, as long as I setup the indicator template with the proper indirection. This way, I only have to setup the indicator once and write in a few parameters, instead of having to customize the indicator the same way for every template that it gets added to.