Creating a Part Template  

This scenario explains how to create a part template containing a keypad that will be instantiated into a CATProduct document. In this scenario, you:
  • Create 2 document templates. When creating the first document template, you do not check the Accept instantiation even if not all inputs are filled option (Steps 1 to 4). When creating the second document template, you check the Accept instantiation even if not all inputs are filled option (Steps 5 to 8). For more information about this option, see Introducing the Document Template Definition Window.
  • Save both document templates in a catalog.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Create the First Template

  1. Open the PktMobilePhoneKeypad.CATPart file. The opposite image is displayed.

  1. From the Insert menu, select Knowledge Templates > Document Template ... (in the Part Design workbench) or, if in the Product Knowledge Template workbench, click the Create a Document Template icon (). The Document Template Definition window is displayed.

  2. In the Document Template Definition window, click the Inputs tab to select the inputs.

    • In the geometry, select the following features: 

    - Curve.8
    - Sharp_Sketch.3
    - Arrow_down_Sketch.6
    - Ok_Sketch.7

    - Arrow_up_Sketch.8
    - Cancel_Sketch.9
    - Surface.3

    • In the Inputs tab, select the Curve.8 feature and assign it a role in the Role field. Repeat the same operation for the features you selected. The final Inputs tab looks like the picture below.

  3. Click the Published Parameters tab to publish parameters.

    • Click . The Select parameters to insert window is displayed.

    • Use the arrow to select the Button_Offset and the Button_top_angle parameters in the Parameters to publish column. 

    • Click OK twice. The Document template is added to the KnowledgeTemplates node.

    • Right-click DocumentTemplate.1 and select Properties to rename the document template.

    • In the Feature Name field, enter Keypad1. Click OK to validate.

Create the Second Template

  1. From the Insert menu, select Knowledge Templates > Document Template ... (in the Part Design workbench) or, if in the Product Knowledge Template workbench, click the Create a Document Template icon (). The Document Template Definition window is displayed.

  2. In the Document Template Definition window, click the Inputs tab and select the following inputs in the specification tree:

    • Curve.8

    • Sharp_Sketch.3

    • Arrow_down_Sketch.6

    • Ok_Sketch.7

    • Arrow_up_Sketch.8

    • Cancel_Sketch.9

    • Surface.3

  3. Select the Accept instantiation even if not all inputs are filled check box.

  4. Click the Published Parameters tab to publish parameters.

    • Click . The Select parameters to insert window is displayed. In the Parameters to publish column, click the Button_Offset and the Button_top_angle parameters and use the arrow to select them. 

    • Click OK twice. The Document template is added to the KnowledgeTemplates node.

    • Right-click DocumentTemplate.2 and select Properties to rename the document template.

    • In the Feature Name field, enter Keypad2. Click OK to validate.

    • Save your file.

  5. Store the document template in a catalog

    • If not already in the Product Knowledge Template workbench,  from the Start > Knowledgeware menu, access the Product Knowledge Template workbench.

    • Click the Save in catalog icon (). The Catalog save dialog box is displayed.

    • Click OK to create a new catalog or the ... button to change the name of the catalog. The catalog is created.

    • Click here to display the result catalog file. Click here to display the result .CATPart file.

  6. Close your file and proceed to the next task: lnstantiating a Part Template.

See the Quick Reference topic for a comprehensive list of the interactions that can be carried on Document Templates.