Rule to Customize Information for Modified Routes (Callback after route extremity modification)

An opening ID is an entry point used to customize business logic. The Callback after route extremity modification opening ID is used to customize the route extremities information.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked when a route extremity is modified in a diagram view:

  • Route a route line
  • Create branch
  • Insert a component on a route or at the end of a route
  • Break or merge a route
  • Connect or disconnect a route line
  • Network Manipulation
  • Delete a component connected to a routable
  • Merge and link routes with sheet connectors
  • Break route with sheet connectors
  • Merge routes using exposed connectors

Definition Description
PLM Opening ID SchematicCallback_RouteExtremityModified
Customization intent Execution
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: Routable PLM Occurrence
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
List_Extremities_Ports List Read List of connected ports
List_Extremities_Components List Read List of connected Components (PLM Occurrences)
List_Extremities_Components_Items (input) List Write List of connected items (PLM Occurrences)
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.

Sample

In 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)
}