Context Object Parameters
Parameter Name |
Type |
Read/Write |
Comments |
CompToInstantiateRefName |
String |
Read/Write |
Defines the reference name of selected component to
instantiate. |
SpecPatternRefName |
String |
Read/Write |
Defines the reference name of selected specification
pattern. |
GenericPatternInstanceName |
String |
Read/Write |
Sets the Generic pattern instance name. |
NumberingRangeStartValue |
Integer |
Read/Write |
Sets the start value of pattern instance numbering
range. |
NumberingRangeIntervalValue |
Integer |
Read/Write |
Sets the interval value of pattern instance numbering
range. |
IntermediateCompRefName |
String |
Read/Write |
Sets the intermediate product reference name. |
Sample
The 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);