Managing User Logics and User Attributes

You can define user logics and user attributes on products.

This task shows you how to:

Create a User Logic

  1. From the Resource Behavior section of the action bar, click Manage Logics .
    The Manage Logics dialog box displays.

  2. Click .
    The Define User Logic dialog box displays.
  3. Enter a Name for the user logic and select a Type.
  4. Click Add Logic to write the logic.

    Use the Formula and Parameter Editor panel that displays to modify the values of the parameters.

  5. Optional: Click to edit the user logic.
  6. Click OK to validate the user logic.

Result: The created user logic displays in the Manage Logics dialog box.

Assign a User Logic

  1. Right-click a resource or activity in the tree and click Resource Configuration.
    The Resource Configuration table displays.
  2. Right-click a resource, and, in its shortcut menu, click Logics > Assign Logic.
    The Available Logics dialog box displays.

  3. Select the user logic to assign, and click Assign.

Result: The selected user logic displays in the User Logics column of the Resource Configuration table.

Manage User Attributes

  1. From the Resource Behavior section of the action bar, click Manage User Attributes .
    The Manage User Attributes dialog box displays.

  2. Click to select an existing product in the tree.
  3. Click Add Attributes from Excel to import a list of user attributes from an existing spreadsheet file.
  4. To edit an existing user attribute: select it and click .

    Use the Formula and Parameter Editor panel that displays to modify the values of the parameters.

  5. Optional: Manage the Storage Unit of a part.

    This determines the storage occupied by a part in any Buffer or AGV Resource.

    1. Edit the storage unit value.
    2. Click to synchronize the storage unit value for all or specific activities using this product.
    The Select Activities to Sync panel displays the list of corresponding activities. Select one or more activities and click OK to update the corresponding storage units.
    Tip: The option is also available in the activity's Edit dialog box. If the value is not synchronized, a warning is displayed. Click to synchronize the values.
  6. Click Close.

Result: The newly added attribute is listed in the Manage Logics dialog box.

Track User Logics

  1. From the Analysis and Output section of the action bar, click Filter products for User logic Status Tables .
    The Product selection for tracking user logics dialog box displays.
  2. Select a product and click to select it. Click OK to save your selection.
  3. In the Simulation Options panel, select Product User Attributes, Global User Logic, and User Logic Status.
  4. Run the simulation and open the Track User Logic Variables panel to verify the user logic values.

    The panel displays a section for each option that you selected.

    • Product user attributes: It contains all tracked workpieces with its user attributes values.
    • User logic: All the defined user logics with its current variable value along with logic type, Resource/Activity is shown
    • Global attribute: It contains all global User logic variables with its value.

Use Global Parameters in User Logics

You can use global parameters to better manage multiple user logics using the same value.

  1. Create a Double or Integer global parameter.

    For more information about global parameters, see Managing Global Parameters and Attributes.

    The new parameters are listed as members of parameters in the Formula and Parameter Editor panel.
  2. Assign a user logic to a resource or activity.
  3. Use the global parameter in user logics.
  4. Optional: Edit the value of the global parameter in Manage Global Parameters.

Result: You can edit the value of global parameters used in user logics in a single operation.