General InformationThis opening ID is invoked during design process, for example, a logical to physical placement process. This opening ID is used to read the following attributes:
Input ObjectsInput objects must be of the following types:
Context Object Parameters
Note:
List members of
ListComputedAttributeValue must always be a one to one mapping with ListAttributeName.SampleThe following sample retrieves PLM instance from input ThisObject. /* CATRule signature (do not edit) : (ThisObject : #In LogicalOccurrence, Parameters : #In RuleContext) : #Void */
Let AttributeName_List (List)
Let ComputedAttributeValue_List (List)
Let AttrNameString (String)
Let ThisInstance (RFLVPMLogicalInstance)
Let OperatorPartType(String)
Let OperatorPartNumber(String)
Let index (INTEGER)
Let size (INTEGER)
AttributeName_List = Parameters.GetAttributeObject("ListAttributeName")
ComputedAttributeValue_List = Parameters.GetAttributeObject("ListComputedAttributeValue")
set ThisInstance = ThisObject.Instance
set size = AttributeName_List.Size()
set index = 1
for index while index <= size
{
set AttrNameString = AttributeName_List.GetItem(index)
if(AttrNameString == "V_Ens_OperatorPartType")
{
if (ThisInstance.HasAttribute("V_description") == true )
{
OperatorPartType = ThisInstance.GetAttributeString("V_description")
ComputedAttributeValue_List.Append(OperatorPartType)
}
}
else if (AttrNameString == "V_Ens_OperatorPartNumber")
{
if (ThisInstance.HasAttribute("PLM_ExternalID") == true )
{
OperatorPartNumber = ThisInstance.GetAttributeString("PLM_ExternalID")
ComputedAttributeValue_List.Append(OperatorPartNumber)
}
}
}
Parameters.SetAttributeObject("ListComputedAttributeValue", ComputedAttributeValue_List)
| |||||||||||||||||||||||||||