General InformationThis opening ID is invoked when you use a group of components from the catalog.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
Note:
Routable objects are never replaced. If the rule indicates replace, the routable objects
are instantiated.
SampleThe following example shows how to compute options for a group of components.
/* Rule created by H66 4/10/2019 */
let ListPLMInstances(LIST)
set ListPLMInstances = Parameters.GetAttributeObject ("List_Instances_From_ComponentGroup")
let OutListOfOperations(List)
Let ReferenceObject(RFLVPMLogicalReference)
Let InstanceObject(RFLVPMLogicalInstance)
let sDiscipline (String)
Let j = 1
for j while j<=ListPLMInstances->Size()
{
set InstanceObject = ListPLMInstances->GetItem(j)
set ReferenceObject = InstanceObject.Reference
sDiscipline = ReferenceObject.V_discipline
if(sDiscipline == "EnsLogicalEquipment")
{
OutListOfOperations.Append(3) /*Replace*/
}
else if(sDiscipline == "Piping_Logical_Part")
{
OutListOfOperations.Append(2)
}
else
{
OutListOfOperations.Append(1)
}
j = j+1
}
/* output parameters write */
Parameters.SetAttributeObject("List_Operations", OutListOfOperations)
| |||||||||||||||||||||||||||