Add a substitution

A substitution is a user-defined rule which, during instantiation, replaces a text string in the name, description, instantiation location, or other attribute of a library object element with a parameter value, calculation result, or referenced value.
To add a substitution
  1. In the decorator panel, either:
    • Click Add New icon on the
      Substitutions
      tab toolbar.
    • In the
      Substitutions
      tab, right-click a group name and then click
      Add New Substitution
      .
      The Substitution Builder window opens.
      All fields are required.
  2. Enter the values for the new substitution.
  3. Select a scope in the
    Scope
    field.
  4. In the
    Original
    field, enter an initial text string to be replaced.
  5. In the
    Replacement
    field, enter a replacement string. Strings, numeric characters, and tokens can all be used in the replacement string.
    Click the ellipsis (...) to open the Member Selector window and select a decorative element to use as the replacement.
  6. In
    Search Mode
    , specify the type of search to use during the substitution process.
    • Choose
      Text
      to search for text strings not in tokens.
    • Choose
      Operand
      to search for an operand in a token.
  7. Click
    OK
    to close the
    Substitution Builder
    .
    The substitution is added to the
    Substitutions
    tab.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal