General InformationThis opening ID is invoked when a route extremity is modified in a diagram view:
Input ObjectsInput objects must be of the following types:
Context Object Parameters
Note:
All the lists are mapped on one to one. If the first extremity is not connected but the
second extremity is, the first index in the lists is NULL. If the first extremity is
connected but second extremity is not, second index in the lists is NULL.
SampleIn the following sample, the instance name of extremities (connected components) is copied on V_description attribute of the route instance like Extremity1Name, Extremity2Name.
let RoutableOcc(LogicalOccurrence)
let ListExtrmitiesOcc(LIST)
set RoutableOcc = ThisObject
set ListExtrmitiesOcc = Parameters.GetAttributeObject("List_Extremities_Components")
let RoutableIns(RFLVPMLogicalInstance)
set RoutableIns = RoutableOcc.Instance
Let String_Description(String)
Set String_Description = ""
Let i = 1
Let isize = 0
set isize = ListExtrmitiesOcc->Size()
let ExtremityOcc(LogicalOccurrence)
if(NULL <> RoutableIns)
{
for i while i<=isize
{
set ExtremityOcc = ListExtrmitiesOcc->GetItem(i)
if(NULL <> ExtremityOcc)
{
Let InstanceObject(RFLVPMLogicalInstance)
set InstanceObject = ExtremityOcc.Instance
Let InstanceName(String)
set InstanceName = InstanceObject.PLM_ExternalID
if (i == isize)
set String_Description = String_Description + InstanceName
else
set String_Description = String_Description + InstanceName + ", "
}
else
{
if (i == isize)
set String_Description = String_Description + "NULL"
else
set String_Description = String_Description + "NULL, "
}
}
RoutableIns.SetAttributeString("V_description",String_Description)
}
| |||||||||||||||||||||||||||||||