|
Create the ARM Catalog
-
From the Start menu, access the
Infrastructure>Catalog Editor workbench. The Catalog Editor opens.
-
Click the Add Family icon to add a family to
your catalog. Click OK in the Component Family Definition
dialog box. Double-click the family in the tree.
-
Click the Add Keyword icon
or select Insert > Add Keyword... from the main menu to
display the Keyword creation dialog box.
-
Specify a name for the new keyword, Logical Name.
-
Select the keyword Type, String from the
drop-down list. This list provides all knowledge types, i.e. Integer,
String, Boolean, Angle, and so on.
-
Click the Add Keyword icon
or select Insert > Add Keyword... from the main menu to
display the Keyword creation dialog box.
-
Specify a name for the new keyword, Type.
-
Select the keyword Type, String from the
drop-down list .
-
Check the With discrete list of values check
box and click OK. The Legal Value Definition dialog box is
displayed. Enter the following values and click OK when done.
-
Click the Add Keyword icon
or select Insert > Add Keyword... from the main menu to
display the Keyword creation dialog box.
-
Specify a name for the new keyword, Usage.
-
Select the keyword Type, String from the
drop-down list.
Add the Assembly Template to the ARM Catalog
-
Open the
BktAssemblyTemplate.CATProduct file. Expand the KnowledgeTemplates
node and click the AssemblyTemplate.
-
Back in the Catalog Editor, click the Add Component
icon ().
The Description Definition dialog box opens.
-
Click Select external feature. The File
Name field is automatically filled.
-
Click the Keywords tab. Select the
Logical Name line and enter MyAssemblyTemplate in the Value
field.
|
The logical name is the name that will be used by
the Instantiate Template behavior to access the assembly template. |
-
Click the Type line and select Assembly
Template from the drop-down list. Click OK.
|
When working with the Instantiate Template
behavior, you do not have to indicate the type because you can
choose to instantiate a User Feature or a Document Template. |
-
Save your catalog in the Knowledge\knowledgeResources
directory referenced by your CATKnowledgePath variable.
Click here to
access the created ARM catalog.
Modify the .CATfct
-
Open the
BktAssemblyTemplate.CATfct file.
-
In the Behaviors view, double-click Tow Hook, and expand
the TowHook node in the Behaviors tab.
-
Select the FilterCatalog behavior and delete it.
-
Double-click the InstantiateTemplate behavior. The
Instantiate Template behavior window opens.
-
Click ARM Browser and navigate to the ARM
catalog file you have just created. Select the assembly template and
click OK.
-
If need be, click the Destination field,
expand the BindObject node and select the output link.
-
If need be, select Use Identical Name from the
Valuation mode scrolling list. Click OK when done.
-
Save your .CATfct in the directory corresponding to the
CATGraphicPath environment variable. Click
here to open the
modified .CATfct file.
Create the Workbench
-
Click the Generate Applicative Workbench icon
()
to generate the user workbench.
-
Enter the name of the workbench, Instantiate_Tow
Hook in this example.
-
Do not modify the default workbench type (Product) and
click OK.
Test the Workbench
-
Open the
BktReceivingProduct.CATProduct file in the user workbench.
-
Click the root of the specification tree, the
icon, the root of the
specification tree, and click the TowHook icon to type the product.
-
Right-click TowHook (Destination_Product) and select
TowHook(Destination_Product) object>Instantiate Tow Hook. The
assembly template is instantiated.
|