Creating an Expert Check  

This task explains how to create a check which detects whether all the holes are activated and have a 11mm diameter.
Before performing this task, make sure you have selected the required packages. To load the required libraries:
  • Select Tools>Options to open the Options window, then select  General>Parameters and Measure, and click the Knowledge tab.
  • In the Parameter Tree View  area of the Knowledge tab, check the With value and With Formula options.
ascenari.gif (1364 bytes)
  1. Open the Kwxcheck.CATPart file.

  2. From the Start menu, select Knowledgeware> Knowledge Expert workbench.

  3. Click the Expert Check icon (kwxWKChecks.gif (1236 bytes)).

  4. Select the rule base relation in the specification tree. The following dialog box is displayed.

  5. If need be, replace the default name and description of the check to be created. Select the KWE Language, then click OK. The expert check editor is displayed.

  6. Use the area with the KweExpertQS.gif (1253 bytes) symbol to specify the feature type you want to apply the expert rule. The following syntax must be applied:

    H:Hole

  7. Copy/Paste the code below from your browser to the edition box:

    (H.Diameter == 11.0 mm) AND (H.Activity == TRUE)

    The check editor now looks something like this:

    kwxExpert04.gif (8150 bytes)

  8. Click OK. A check is added to the rule base in the specification tree. To get a full description of the available types, see the Reference section of this guide.

  9. Click the icon to solve the rule base. Your document looks something like this:

    The light icon associated with the check has turned to red, indicating that the check is not valid (all the holes have a diameter of 10.0mm).

    Right-click the check in the specification tree, and select Highlight Failed Component. This highlights the features that don't fulfill the criteria specified in the check.

aendtask.gif (1477 bytes)