![](../icons_C2/common/atarget.gif) |
This scenario explains how to instantiate a template into
a CATProduct file. It is divided into 2 different parts:
|
![](../icons_C2/common/aprereq.gif) |
To perform this scenario, you need the following files:
-
PktMobilePhoneSupport.CATProduct that is made up of the following
CATPart and CATProduct files:
-
PktKeypadscatalog.catalog: This catalog contains 2 document
templates: Keypad1 and Keypad2. When creating Keypad1, the Accept
instantiation even if not all inputs are filled option was
unchecked. When creating Keypad2, the Accept instantiation
even if not all inputs are filled option was checked.
|
![ascenari.gif (1364 bytes)](../icons_C2/common/amethod.gif) |
Working with the Cache system: Till R14 the previous
instantiation behavior was to load the whole assembly when the
instantiation occurs, that is to say, at the very beginning of the
instantiation. Now this loading is performed only when you enable the
Use Identical Name option.
If the Part is not loaded in the current selection, you can click it to
load it. |
![ascenari.gif (1364 bytes)](../icons_C2/common/ascenari.gif) |
-
Open the PktMobilePhoneSupport.CATProduct file.
-
Click the Open Catalog icon ( )
and select the
PktKeypadscatalog.catalog that you created in the
Creating a Part Template topic.
The Catalog Browser opens.
-
Double-click DocumentTemplate, 7 inputs and Keypad1. The
Insert Object window opens. (Click the graphic opposite to
enlarge it).
![ascenari.gif (1364 bytes)](../icons_C2/common/ainfo.gif) |
For more information about the Insert Object
dialog box, click here. |
-
Value the Inputs by selecting the publications
located below the Industrial Design node in the specification tree or
click Use Identical Name in the Insert Object
window.
-
Make the appropriate selections in the Replace
Viewer window (see picture below) and click OK when
done.
![ascenari.gif (1364 bytes)](../icons_C2/common/ainfo.gif) |
Note that in some cases, when instantiating a
part or assembly template, the replacing element does not present the
same sub-elements as the replaced element. Therefore you need to
clearly indicate in a specific dialog box, the
Replace Viewer, how to rebuild the
geometry from the replacing element. |
-
Click OK in the Check warning box, then
Close. The keypad is instantiated (see picture below.)
-
Close your file.
-
Open the
PktMobilePhoneSupport.CATProduct file.
-
Click the Open Catalog icon and select the
PktKeypadscatalog.catalog that you created in the
Creating a Part Template topic.
The Catalog Browser opens.
-
Double-click Document Template, 7 inputs and
Keypad2. The Insert Object window opens.
-
Click OK in the Insert Object window. The
keypad is instantiated. Note that you do not have to value the inputs
because the Accept instantiation even if not all inputs are filled
option was checked when creating the Keypad2 part template.
|
![aendtask.gif (1477 bytes)](../icons_C2/common/ainfo.gif) |
See the Quick Reference topic for a
comprehensive list of the interactions that can be carried on Part
Templates. |