Create a template

Create a template

Use a template to create objects, object types, and variables that have similar attributes.
Prerequisites
Create a custom library. See Configure a local library and Configure a remote library.
  1. To create a template
  2. Select
    Template Libraries
    .
  3. (optional) In
    Libraries
    , select
    Configure
    and then select
    Preserve paths on library elements
    .
    TIP:
    By default, importing a template with dependencies creates the objects in the parent node of the imported template. Preserve paths on library elements to import template dependencies to their original nodes.
    For example, if you import a widget that depends on objects located in the
    Model
    folder, select
    Preserve paths on library elements
    to recreate the objects in the Model folder.
  4. From
    Project view
    , drag the node into a custom library in
    Template Libraries
    .
    TIP: You cannot add templates to predefined libraries.
    For example, drag an object, object type, variable, or widget.
  5. If prompted, resolve object type conflicts.
    Type conflicts occur when object types of the new template duplicate object types of an existing template.
    To address object type conflicts select either:
    • Skip
      . Do not update a specific object type. Keep the existing object type in the project.
    • Replace
      . Replace a specific existing object type with a new object type.
    • Rename
      . Rename a specific new object type with a unique name. Retain the existing object type.
    • Skip all
      . Do not update any object types. Keep the existing object types in the project.
    • Replace all
      . Replace all existing object types with new object types.
    • Rename all
      . Rename all object types to with unique names. Retain the existing object types.
  6. (optional) Select the template and enter a description.
    For example, explain how to use or implement the object, object type, variable, or widget.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.