Performing a Global Analysis of Checks

This task explains how to perform an analysis of Knowledge Expert and Knowledge Advisor Checks. The scenario is divided into 2 major steps: 
  • parameters, formulas and checks are created,
  • the checks analysis is run and the checks that failed are corrected.
For more information about the Global Analysis tool and the Check Report, see Using the Check Analysis Tool and Customizing Check Reports.
For the check report to be correctly generated, go to Tools>Options>General>Parameters and Measure >Report Generation, and select:
  • The Input XSL file under Input XSL. (An XSL file is provided by default. Click here to get a description of the generated XML file.)
  • The parameters you want to appear in the report under Report Content.
  • The Output directory under Output Directory.
  1. Open the KwxCheckAnalysis.CATPart file. From the Start>Knowledgeware menu, access the Knowledge Advisor workbench.

  2. Create a parameter of Length type and assign it a formula. 

    • Click the icon. The formula editor opens.

    • Select Length in the scrolling list to define the type of the parameter, click New parameter of type, change the name of the parameter (Length in this scenario), and click Add Formula. The Formula Editor opens.

    • Under Dictionary, select Measures, and double-click distance(Body,Body). Position the cursor before the coma and double-click Point.1 in the specification tree or in the geometrical area. Position the cursor after the coma and double-click Point.2 in the specification tree. Click OK, Yes (when prompted for an automatic update), Apply, and OK.

     

 
  1. Create a parameter of Volume type and assign it a formula.

    • Click the icon. The formula editor opens.
    • Select Volume in the scrolling list to define the type of the parameter, click New parameter of type, change the name of the parameter (Volume in this scenario), and click Add formula.

    • Under Dictionary, select Part Measures, and double-click smartVolume. Position the cursor between the parentheses and select PartBody in the specification tree. Click OK, Yes (when prompted for an automatic update), Apply, and OK.

    The parameters and the associated formulas are created.

  2. Access the Knowledge Advisor workbench, click the Check icon (), change the name of the check (Length in this scenario), and click OK. The Check Editor opens.

  3. Enter the following script in the editor, then click Apply and OK.

    Length > 150mm
The Knowledge Advisor Check is created.
  1. Access the Knowledge Expert workbench, click the Expert Check icon, and change the name of the check (HoleCheck in this  scenario). The Expert Rule Editor opens.

  2.  In the Condition tab, enter the following script:

      H:Hole
    Editor H.Diameter > 15mm
  3. Click the Correction tab, select VB Script in the scrolling list and enter the following script in the editor:

    Dim aHole as Hole
    Set aHole = H.parent.Item(H.Name)
    Dim diam As Length
    Set diam = aHole.Diameter
    diam.Value = 16
    MsgBox("Correction performed on "&H.Name)
  4. In the Correction Comment field of the Correction tab, enter the following string, and click OK:
    Holes diameter must be greater than 15mm.

  5. Select the Rule Base under the Relations node and click the Expert Check icon, change the name of the check (DraftandHole in this scenario), and click OK. The Expert Check Editor opens.

  6.  In the Condition tab, enter the following script, then click Apply and OK.

    H:Hole ; D:Draft
    Editor D.Activity AND H.Diameter > 12mm
The checks are created.  
  1. Click the icon in the toolbar. The Global Analysis Tool opens.

  2. Click the icon to update the status of the checks. The Checks lights turn to red in the specification tree.

  3. Click the icon. An xml page opens indicating the items that failed. For more information about this report, see Customizing Check Reports.

  4. Click the icon to launch the correction method specified when creating the Expert check (See step 9). The checks have been corrected.

    Only the Advisor check (Length) could not be corrected: The value of the Length parameter is 100.175 mm (as indicated in the report) whereas it must be superior to 150mm (as indicated in the body of the check). 

  5. To correct the check, modify the value of the Length parameter.

  • Double-click Point.1 in the geometrical area. The Point definition window opens.
  • In the H: field, change the value of the point to 150mm. Click Apply and OK. The light of the check turns to green indicating that the check is passed.