Add a function

A function is an argument that is not exposed to external access. The value of a function is generated by user-defined logic created in the
Library Designer
and by conditions that apply during instantiation.
To add a function
  1. In the decorator panel, either:
    • Click Add New icon on the
      Function
      tab toolbar.
    • In the
      Function
      tab, right-click a group name and then click
      Add new Function
      .
      The Function Builder window opens.
      TIP:
      The fields displayed in the
      Function Builder
      are dynamic depending on the type of function selected.
  2. Enter the values for the new function.
    • In
      Type
      , either:
      • Choose
        Calculation
        , then specify an
        Expression
        to evaluate to generate the output value.
      • Choose
        Conditional
        , then specify a logical condition to evaluate using
        If/Else
        logic to generate the output value. Expressions can be used as part of the logical statement for both evaluated conditions and output values.
    • In
      Result Type
      , choose the data type of the functions output.
    • In
      Function Scope
      , choose the library object that contains the function.
    • To base the new function on an existing function, click
      Import
      and then select the function.
      TIP:
      Click the ellipsis (...) button next to a field that supports expressions to use the Expression Builder to create the expression.
  3. (optional) Click
    Save
    to save the function as an XML file for reuse purposes.
  4. Click
    OK
    to add the new function.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal