Inserting an Engineering Template

You can instantiate an engineering template without any user interaction at run time. In this example, the template has three geometrical inputs that are going to be valuated using Binds.

This task shows you how to:

With Resource table

You can instantiate a template using a resource table.

  1. Double-click the type you have created and click Sequence Combination to create a sequence of operations.
  2. Click Bind Object . This operation is used to search for the destination of the instantiated engineering template.
  3. Click Bind Object . This operation is used to valuate the first input of the template. Note that you can also use a Bind a Publication or a Bind a Parameter operation depending on the input type.
  4. Click Bind Object . This operation is used to valuate the second input of the template. Note that you can also use a Bind a Publication or a Bind a Parameter operation depending on the input type.
  5. Click Bind Object . This operation is used to valuate the third input of the template. Note that you can also use a Bind a Publication or a Bind a Parameter operation depending on the input type.
  6. Double-click the Bind a PLMComponent.1 operation in the tree and enter ExtObj in the Relative Name field. Click OKto validate.
  7. Click Instantiate Engineering Template .
  8. Double-click InstantiatePLMTemplate.1 in the tree. The Instantiate Engineering Template editor opens.
  9. Click resource table input and click .... The Resource table opens.
    1. Click .... The Resource table opens.
    2. Select an Engineering Template from the list or click Add a new resource item. A new line is displayed in the table. Double-click the Resource cell. The Select an Engineering Template for item "Resouce1" appears. Type the name of the Engineering Template and click Search. Select the Engineering Template in the list and click OK. The Engineering Template is added to the Resource cell. Click OK twice to validate.
    3. Click the Destination field in the Instantiation context area and click the output link of the Bind a PLMComponent.1 operation in the tree.
  10. Add three input attributes identical to those defined on your Engineering Template and click OK when done.
    1. In the Defined inputs and parameters area, click Add. The InstantiatePLMTemplate.1 editor opens.
    2. Type the name of the attribute, Input1.
    3. Select Pointer in the Parameter type scrolling list and click OK when done.
    4. In the Defined inputs and parameters area, click Add. The InstantiatePLMTemplate.1 editor opens.
    5. Type the name of the attribute, Input2.
    6. Select Pointer in the Parameter type scrolling list and click OK when done.
    7. In the Defined inputs and parameters area, click Add. The InstantiatePLMTemplate.1 editor opens.
    8. Type the name of the attribute, Input3.
    9. Select Pointer in the Parameter type scrolling list and click OK when done.
  11. Expand the BindObject operations nodes.
  12. Right-click the Input1 variable located below the InstantiatePLMTemplate.1 operation in the tree, select Input2 object > Link To and click the output Link of the second Bind a component operation.
  13. Right-click the Input2 variable located below the InstantiatePLMTemplate.1 operation in the tree, select Input2 object > Link To and click the output Link of the third Bind a component operation.
  14. Right-click the Input1 variable located below the InstantiatePLMTemplate.1 operation in the tree, select Input2 object > Link To and click the output Link of the fourth Bind a component operation.

Without Resource table

You can instantiate a template without a resource table.

  1. Click the type you have created and click Sequence Combination to create a sequence of operations.
  2. Click Query Component .
  3. Click Bind Object . This operation is used to search for the destination of the instantiated engineering template.
  4. Click Bind Object . This operation is used to valuate the first input of the template. Note that you can also use a Bind a Publication or a Bind a Parameter operation depending on the input type.
  5. Click Bind Object . This operation is used to valuate the second input of the template. Note that you can also use a Bind a Publication or a Bind a Parameter operation depending on the input type.
  6. Click Bind Object . This operation is used to valuate the third input of the template. Note that you can also use a Bind a Publication or a Bind a Parameter operation depending on the input type.
  7. Double-click QueryComponent.1 in the tree and select 3D Templates Capture in the scrolling list. Click OK to validate.
  8. Double-click the Bind a PLMComponent.1 operation in the tree and enter ExtObj in the Relative Name field. Click OK to validate.
  9. Click Instantiate Engineering Template .
  10. Expand the QueryComponent.1 node.
  11. Double-click InstantiatePLMTemplate.1 in the tree. The Instantiate Engineering Template editor opens.
  12. Click the Engineering Template field and click the output component of the QueryComponent.1 operation in the tree to indicate that the Engineering Template that is going to be instantiated is the result of the query made in the database using the Query Component operation.
  13. Add three input attributes identical to those defined on your Engineering Template and click OK when done.>
    1. In the Defined inputs and parameters area, click Add. The InstantiatePLMTemplate.1 editor opens.
    2. Type the name of the attribute, Input1.
    3. Select Pointer in the Parameter type scrolling list and click OK when done.
    4. In the Defined inputs and parameters area, click Add. The InstantiatePLMTemplate.1 editor opens.
    5. Type the name of the attribute, Input2.
    6. Select Pointer in the Parameter type scrolling list and click OK when done.
    7. In the Defined inputs and parameters area, click Add. The InstantiatePLMTemplate.1 editor opens.
    8. Type the name of the attribute, Input3.
    9. Select Pointer in the Parameter type scrolling list and click OK when done.
  14. Expand the BindObject operations nodes.
  15. Right-click the Input1 variable located below the InstantiatePLMTemplate.1 operation in the tree, select Input1 object > Link To and click the output Link of the second Bind a component operation.
  16. Right-click the Input2 variable located below the InstantiatePLMTemplate.1 operation in the tree, select Input2 object > Link To and click the output Link of the third Bind a component operation.
  17. Right-click the Input3 variable located below the InstantiatePLMTemplate.1 operation in the tree, select Input3 object > Link To and click the output Link of the fourth Bind a component operation.