Model Reference Manual
Design Templates
: Using a Design Template Item in a Design
Using a Design Template Item in a Design
To create an instance of a ‘source’ design template in a design model, first create a template below the owning design element and then copy into this the details of the source template (which must be in a template world) from which it is to derive its data. The commands (at the design element which is to own the instance) are:
NEW TMPL
COPY REXEcute
template_identifier
where
template_identifier
is the name of the source template. The effects are as follows:
•
All elements below the original design template are copied below the new TMPL.
•
All template rules are copied and re‑executed, thus setting the attributes of the new TMPL members to suit the design data.
•
The Origin Reference (ORRF) attributes for the new TMPL elements are set to point to their equivalents in the source template.
•
All elements below the new TMPL are locked to prevent unintentional changes to any of their attributes.
To change an attribute explicitly, thereby causing it to differ from the design as specified in the source template, the user must first unset the ORRF references which point back to the source and unlock the members. To do so, use the command
UNTIE
template_instance
where
template_instance
is the name of the copy TMPL in the design model hierarchy.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.