Knowledge Expert enables you to use rule bases stored in
catalogs and to instantiate them. You may choose to apply the rule base to the
document (Use only option), to import it and copy it (Import
option), and to import it and maintain a link with the original rule base.
|
This task explains how to retrieve and apply a rule base
stored in a catalog to a document by using the Use Only Option. |
|
The Import option enables you to copy the rule base into
the document as well as its sub-components (rule sets, rules, and checks). |
|
-
Open the document you want to import the rule base to (KwxCatalogImport.CATPart
for example).
-
Click the Open catalog
icon. The catalog browser is displayed. Select the
KwxCatalogRuleBases.catalog
file which contains the rule base to be imported. The Rules family is
displayed in the left-hand part of the catalog window.
-
Double-click the rule base.
This dialog box is displayed. |
|
-
Check Import to import the rule base into the
document. Click OK, then Close. The screen below is
displayed.
|
|
Formulas cannot be stored in catalogs, only parameters
values can be. So, if you have applied a formula to a parameter, only the
parameter will be imported together with the rule base. |
|
This task explains how to import a rule base while
maintaining the link with the original rule base.
This scenario is divided into 3 parts:
|
- you modify the original rule base and store the result of the
solve operation
|
- you synchronize the rule base (contained in the
KwxCatalogImport.CATPart file) with the original rule base
(contained in the KwxCatalog.CATPart file).
|
|
|
The Import with Link option enables you to import the rule
base as a link and keeps the link with the original rule base. Note that it
does not copy the content of the rule base. You can import the rulebase
only once. After importing it, you can only synchronize it. No other
rulebase can be imported. |
|
The import of knowledge rule bases consists in duplicating
a rule base i.e creating an interactive link between 2 rule bases
stored in 2 different files. It implies significant model size reduction,
and ensures the use of updated knowledge relations. You can:
- See the structure of the rule base and navigate through it
|
- See if the rule base is updated or not (thanks to an icon)
|
- See if the rule base is synchronized or not
|
- Launch corrective actions, and generate reports
|
- Modify settings information (automatic update)
|
|
|
-
Open the
KwxCatalog.CATPart file and create a catalog containing the reference
rule base. For more information about catalogs, see Infrastructure
User's Guide. Close the Catalog Editor and the KwxCatalog.CATPart
file.
-
Create a part containing holes or open the
KwxCatalogImport.CATPart
file.
-
Click the Open catalog icon ().
The catalog browser is displayed. Select the catalog you have created.
The family you created is displayed in the left-hand part of the editor.
-
Double-click the rule base family.
This dialog box is displayed. |
|
-
Check Import with link to import the rule base
into the document. Click OK, and Close.
The rule base contained in the catalog is imported
(with the necessary information only) into the document. |
|
The rule base appears in the specification tree
under the Relations node as well as the rules and checks nested
into the database. |
The
symbol
indicates that the link with the original rule base is maintained. |
|
The
symbol indicates that the checks are locked and cannot be modified. |
-
Click the Solve icon ()
to solve the imported rule base.
-
Open the
KwxCatalog.CATPart file and modify one of the checks.
|
|
|
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
KwxCatalogImport.CATPart file, select Edit > Links. The
Links of document window opens (see below).
|
Click the graphic opposite to enlarge it. |
-
Click
and click OK.
The rule base is synchronized.
-
Right-click the CATKWECheck.1 and select
Correct Function. The correct function is launched.
-
Click the Solve icon: the document is
updated (see below.)
|
|
See also the Creating a customized Toolbar containing
a Catalog topic in the Infrastructure User's Guide. |