Defining a Compute Optimal Mirror Combination for the Indirect Vision Object 

In this scenario, the expert user implement the  "if then else" pattern using a Knowledge Relations behavior. This relation is a rule that drives the activity of two combinations.
  1. Open the IndirectVisionStep02.CATfct file. Double-click IndirectVision's Behaviors and then IndirectVision in the Behaviors tab. The following graphic is displayed:

    Note that:

    • For IndirectVision object, a new combination called "Compute Optimal Mirror", and a sub-combination called "Mirror_EEC", have been created. 

    • The Load_EEC and BindPowerCopy behaviors that retrieve a Power Copy stored in a document have been created.

    • The LoadNew, BindObject and InsertComponents behaviors have been created: They create and insert below the product IndirectVision the new part in which the power copy will be instantiated.

    • The Find_External_Mirror_Part behavior retrieves the feature part of the previous part document.

    • The Imports creation combination creates all the external references which will be inputs of the power copy.

    • The PowerCopySpecification behavior instantiates the power copy. Note that inputs have been created on this behavior and linked to the previous imports.


  2. Click the Compute optimal mirror combination and click the Knowledge Relations behavior icon (). 

  3. Double-click the KnowledgeRelation node in the Behaviors tab. The Knowledge Relations editor is displayed. 

  4. In the Name field, enter Trigger Load.

  5. Click the Attributes tab and add the following attributes:

    • Name: CurrentLegislation, Type: String, Value: EEC

    • Name: Act_EEC, Type: Boolean, Value: false, Quality: Output

    • Name: Act_US, Type: Boolean, Value: true, Quality: Output

    For more information about the Quality field, see About the Add Attribute dialog box...

  6. Add a rule to the behavior.

    • Click the Content tab then the Rule icon () in the Knowledge Tools toolbar to add the rule. The Rule Editor opens. 

    • Enter the name of the rule and click OK to access the Rule editor window. 

    • In the Rule editor, enter the following rule and click OK twice to validate and to exit the Rule editor:

    if CurrentLegislation == "EEC"
    Act_EEC =TRUE
    Act_US = FALSE
    Act_US =TRUE
    Act_EEC = FALSE
  1. Right-click the Trigger Load behavior and select Trigger Load object>Reorder


  1. Click the Compute optimal mirror combination: The Knowledge relation is now located right below the Compute optimal mirror combination.


  1. Link the Trigger Load behavior and the Compute optimal mirror combination for the rule contained in the Trigger Load behavior to be driven by the Legislation attribute defined on the IndirectVision object.

  • Expand the behavior model IndirectVision and its Attributes node.

  • Expand Trigger Load and its variables node.

  • Right-click the CurrentLegislation attribute and "Link to", then select the Legislation attribute of the IndirectVision behavior: The rule is now driven by the Legislation attribute defined on IndirectVision.

  1. Right-click the Mirror_EEC combination and select Copy.

  2. Right-click the Compute optimal mirror combination and select Paste: A combination named Mirror_EEC.1 was pasted below Mirror_EEC.

  1. Double-click the Mirror_EEC.1 node. The Sequential Combination editor is displayed.

  2. In the Name field of the opening dialog box, enter Mirror_US and click OK to validate.

  1. Expand the Mirror_US node and double-click the Load_EEC node. The Load Document editor is displayed.

    • Change the name to Load_US in the Name field.

  2. Save your file and proceed to the next task: Defining a "Generate Report" Behavior on the Indirect Vision Technological Type.