Engineering Templates Resources: Cloning of Objects at Template Instantiation (PLMTemplateCloning)

The cloning of objects at template instantiation opening ID is called when instantiating an engineering template. The opening ID provides a name for the duplicated references created at instantiation.

Note: For more information about customization by business rules, see Installation and Setup: Customize: Behavior: Data Setup: Customization by Business Rules.

This page discusses:

General Information

The opening ID is invoked for any reference (PLMCoreReference and PLMCoreRepReference) included in the Duplicated Components list of the PLM Template. At instantiation, these components are duplicated and the opening ID is called to compute the new References name.

The table below provides you with information related to the definition of the opening ID:

Opening ID: PLMTemplateCloning
Customization intent: Computation
Execution context:Client

Input Objects

Input objects must be of the following types:

  • ThisObject
  • Parameters corresponds to the Context Object.

Context Object Parameters

No specific parameters are given for this opening ID.

Sample

The following sample shows how to modify the PLM_ExternalID of the cloned component of the template using the username and the current time to ensure uniqueness.

ThisObject.PLM_ExternalID = Parameters.UserID + "_" + 
ThisObject.PLM_ExternalID + "_" + DateFormat("%d/%m/%y_%H:%M:%S")