General InformationThis opening ID is invoked whenever the Assembly Pattern is run in creation mode. This opening ID is used to customize pattern instance names. The table below provides you with information related to the definition of the Opening ID.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe following sample illustrates how to customize assembly pattern instance renaming opening.
/* Variables to store Input parameters */
Let varCompToInstantiateRefName = ""
Let varSpecPatternRefName = ""
Let varPatternInstacePrefix = "PatternInstanceOf"
Let varPatternInstaceSuffix = "AsPatternInstance"
/* Variables to store Output parameters */
Let varGenericPatternInstanceName = ""
Let varIntermediateCompRefName = ""
/* Get Input: Retrieve the component to instantiate reference name */
varCompToInstantiateRefName = Parameters.GetAttributeString("CompToInstantiateRefName")
varSpecPatternRefName = Parameters.GetAttributeString("SpecPatternRefName")
/* Calculate Output: create a generic pattern instance name using any combination of prefix, comp. ref. name, spec. pattern name and postfix */
varGenericPatternInstanceName = varPatternInstacePrefix + varCompToInstantiateRefName + varSpecPatternRefName
varIntermediateCompRefName = “GatheringOf” + varGenericPatternInstanceName;
/* Set Output: Return the output parameters including generic pattern instance name */
Parameters.SetAttributeString("GenericPatternInstanceName", varPatternInstanceName)
Parameters.SetAttributeString("NumberingRangeStartValue”, 10);
Parameters.SetAttributeString("NumberingRangeIntervalValue”, 5);
Parameters.SetAttributeString("IntermediateCompRefName”, varIntermediateCompRefName);
| |||||||||||||||||||||||||||||||||||||||||