Instantiating Relations from a
Catalog
![](../icons_C2/common/atarget.gif) |
The scenario developed below explains
how to instantiate a check stored in a catalog into a CATPart document.
Formulas, rules and checks can be stored in a catalog. They can then be reused in a
document by using an instantiation mechanism.
For more information about catalogs, see the Infrastructure User's Guide.
|
![](../icons_C2/common/ascenari.gif) |
-
Create a new part by using the File->New command. Then create two
length type parameters named Radius and Height. If need be, refer to the Infrastructure
User's Guide - Using Knowledgeware Capabilities (Creating a Parameter).
-
In the standard toolbar, click the
icon. The catalog browser is displayed.
-
Click the icon to open the
CatalogFormula.catalog catalog. This catalog is to be used with the
Formula_005_Start.CATPart sample. The catalog browser looks something like this (you may
need to expand the Knowledge node to display the three relations Formula.1, Check.1,
Check.2 - what you see in the left-hand part of the Catalog Browser depends on the last
interactions you have carried out with this dialog box).
-
Double-click the Check.1 object. The dialog box below is displayed.
-
Rename the Check.1 check by using the Name field. Enter HeightCheck for
example.
-
The 'Hauteur' input is highlighted. In the part specification tree,
select the Height parameter. The Rayon input is now highlighted. In the specification
tree, select the Radius parameter. Click OK. The HeightCheck is added to the
specification tree and depending on the values assigned to the Height and Radius
parameters, a message can be displayed.
-
Double-click the HeightCheck relation in the specification tree. The
relation below is displayed in the check editor:
Height >= Radius.
![](../icons_C2/common/ainfo.gif) |
The relations of a catalog must be instantiated one-by-one in a document. |
|
|