Creating Rule Sets   

atarget.gif (1372 bytes) This task explains how to add rule sets to rule bases or to rule sets by using the icon.
This function was developed to enable you to add rule sets under rule bases and thus create a rule sets hierarchy. Rule sets can now be defined and managed to logically structure the corporate knowledge base: you can classify the rules and checks you created by process, for example. 
For the Relations node to be correctly displayed in the specification tree, make sure Relations is checked in the Options dialog box (Tools>Options...>Infrastructure>Part Infrastructure>Display)
ascenari.gif (1364 bytes)
  1. Open the KwxRuleSet1.CATPart.

  2. Select the root of the specification tree, and from the Start menu, select Knowledgeware>Knowledge Expert: a rule base is automatically added to the Relations node.

  3. Select the rule base and click the Rule set icon. If need be, change the name of the rule set (RuleSet1 in this scenario) and click OK.

  4. Click the Expert Rule Icon, change the name of the rule (ExpertRule in this scenario) and click OK. The Rule Editor opens.

  5. Enter the following script in the Editor, then click Apply, and OK.

    H:Hole
      if(H.HoleType == "Simple")
    {
    H.Diameter = 24mm
    }
  6. Select the rule set and click the Rule set icon (). If need be, change the name of the rule set (RuleSet2 in this scenario) and click OK.

  7. Select the Rule Set you have created (RuleSet2), click the Expert Check icon, change the name of the Check (ExpertCheck in this scenario) and click OK. The Check Editor opens.

  8.  Enter the following script in the Editor, then click Apply, and OK.

    H:Hole
      H.Diameter > 10mm
  9. Click Apply, and OK. The Relations node of the specification tree now looks like the one below:

  • You can nest as many Rule Sets as required into a Rule Base.
  • You can nest as many Rule Sets as required into another Rule Set.
  • You can create as many Expert Rules or Expert Checks as required under each Rule Set.
  •  
This function is especially  helpful when activating and deactivating rule sets. For more information, see Activating and Deactivating a Rule Set.

aendtask.gif (1477 bytes)