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. |
|
|
To know more 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
Customization, and select:
- The Input XSL file under Select
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 Select
Output Directory. |
|
|
|
-
Open the KwxCheckAnalysis.CATPart
file.
-
Create a parameter of Length
type and assign it a formula. To do so, proceed as follows:
|
Click the icon.
The formula editor opens. |
|
Select Length
in the scrolling list to define the type of the parameter,
click the New parameter of type
button, change the name of the parameter (Length in this
scenario), and click the Add Formula
button. 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. |
|
-
Create a parameter of Volume
type and assign it a formula. To do so, proceed as follows:
|
Click the icon.
The formula editor opens. |
|
Select Volume
in the scrolling list to define the type of the parameter,
click the New parameter of type
button, change the name of the parameter (Volume in this
scenario), and click the Add formula
button. |
|
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 (click the graphic
opposite to enlarge it) |
-
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.
-
Enter the following script in the editor, then click
Apply and OK.
The Knowledge Advisor Check is created (click
the graphic opposite to enlarge it). |
|
-
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.
-
In the Condition tab, enter the following
script:
|
H:Hole |
Editor |
H.Diameter
> 15mm |
-
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) |
-
In the Correction Comment field of the
Correction tab, enter
the following string, and click OK:
Holes diameter should be greater than 15mm.
-
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.
-
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 (click the graphic
opposite to enlarge it). |
|
-
Click the icon in the toolbar. The Global Analysis
Tool opens.
-
Click the
icon to update the status of the checks. The Checks lights turn to
red in the specification tree.
-
Click the
icon. An xml page opens indicating the items that failed. To know
more about this report, see Customizing
Check Reports.
-
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 should
be superior to 150mm (as indicated in the body of the check).
-
To correct the check, modify the value of the Length parameter. To do
so, proceed as follows:
|
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. |
|
|