Creating a rule
base |
|
|
|
An empty rule base is automatically
added to a document when you access the Knowledge Expert workbench. |
Importing a rule
base |
|
|
|
In the file selection box, select the
CATProduct file which contains the rule base to be imported.
Note:
|
- the external document must be a CATProduct
|
|
- the rule base is the only feature which is imported from the
external document (mechanical features are not imported for example)
|
|
- rules/checks are not imported when there are rules/checks with
the same name in the importing document
|
|
Storing a Rule Base
in a Catalog |
|
|
|
-
Select Knowledge > Catalog Editor.
-
Add a family to a chapter, then click the Add Family
icon. The new family is added to the tree.
-
Double-click the family, then click the Add Component
icon, the Description Definition dialog box is displayed.
-
Push Select external feature, then select the
rule base in the document specification tree.
-
Save the created catalog.
|
Retrieving a Rule
Base from a Catalog |
|
|
|
-
Open the document you want to import the rule base to.
-
Click the Open catalog
icon.
-
Double-click the rule base. A dialog box prompts you to
check either the Use Only option or the Import option.
|
Solving a rule base |
|
|
|
There are two ways to solve a rule base:
-
The
icon. This icon is activated either when the document has just been
modified or when one of the rule base relations has just been modified. A
rule base which is to-be-solved is displayed in the specification tree
with a
icon. Click the Solve icon in the workbench to solve the rule
base.
-
Manual Solve. This command solves the rule
base no matter its status (to-be-solved or not).
|
Activating /
Deactivating a rule base |
|
|
|
In the parameter list of the Formulas
dialog box, select the rule base/activity parameter and modify its value in
the Edit name or value of the current parameter field. |
|
|
|
In the specification tree, right-click
the rule base object, then select Rulebase object > (De)activate. |
Defining the rule base settings (check
report) |
|
|
|
In the specification tree, right-click
the rule base object, then select Rulebase object > Settings. |
Creating a rule set |
|
|
|
The rule set creation is included in the
expert rule/check creation task. When you create an expert rule/check, you
are prompted to select either a rule base or a rule set. Selecting a rule
base creates a rule set and adds a rule/check to this rule set.
Selecting an already existing rule set creates a rule/check in this rule
set. |
Activating /
Deactivating a rule set |
|
|
|
In the parameter list of the Formulas
dialog box, select the ruleset/activity parameter and modify its value in
the Edit name or value of the current parameter field. |
or |
|
|
In the specification tree, right-click
the rule set to be activated or deactivated, then select
Ruleset.object > (De)activate. |
Deleting a rule set |
|
|
|
In the specification tree, right-click
the rule set, then select Delete. |
Creating an expert
rule |
|
|
|
-
Select a rule base or a rule set. A dialog box is
displayed.
-
Modify the default rule name and comments (optional).
-
Click OK. The Rule Editor is displayed.
-
Enter the feature type in the
field ,
example: H:Hole;S:Shell
and the rule body, example:
if H.Diameter > 10.0
(H.Diameter = False)
-
Click Apply to check the rule syntax.
-
Click OK to add the expert rule to the document.
|
Editing / Modifying an expert rule |
|
|
|
In the specification tree, double-click
the rule to be edited, then modify its statements in the rule editor. |
or |
|
|
In the specification tree, right-click
the rule to be edited, then select Rule object > Definition. |
Activating / Deactivating an expert rule |
|
|
|
In the parameter list of the Formulas
dialog box, select the rule/activity parameter and modify its value in the
Edit name or value of the current parameter field. |
or |
|
|
In the specification tree, right-click
the rule to be activated/deactivated, then select Activate/Deactivate. |
Deleting an expert
rule |
|
|
|
In the specification tree, right-click
the rule to be deleted, then select Delete. |
Creating an expert
check |
|
|
|
-
Select a rule base or a rule set. A dialog box is
displayed
-
Modify the default check name and comments (optional)
-
Click OK. The Check Editor is displayed
-
Enter the feature type in the
field ,
example: H:Hole;S:Shell
-
Enter the check body in the edition box
H.Diameter > 10.0 mm
-
Click Apply to test the check syntax
-
Specify a correction method and a message to be displayed
in the check report (optional)
-
Click OK to add the expert check to the document.
|
Editing / Modifying
an expert check |
|
|
|
In the specification tree, double-click
the check to be edited, then modify its statements in the check editor. |
or |
|
|
In the specification tree, right-click
the rule to be edited, then select Check object > Definition. |
Activating / Deactivating an expert check |
|
|
|
In the parameter list of the Formulas
dialog box, select the check/activity parameter and modify its value in the
Edit name or value of the current parameter field. |
or |
|
|
In the specification tree, right-click
the check to be activated/deactivated, then select Activate/Deactivate. |
Generating a check report |
|
|
|
The Check Report is generated from
the data specified in the RuleBase Settings.
To modify the format or the contents of the Check Report, select
Rulebase object > Settings and check the appropriate options in
the RuleBase Settings dialog box. |
Applying a correction method |
|
|
|
In the specification tree, right-click
the check, then select Correction Function. The rule base must
have been solved. |
Highlighting invalid features |
|
|
|
In the specification tree, right-click
the check, then select Highlight Failed Components. The rule
base must have been solved. |
Deleting an expert
check |
|
|
|
In the specification tree, right-click
the check to be deleted, then select Delete. |