Systems Space Allocation Functions

This package contains functions to access the allocation connection.

This page discusses:

CreateAllocationConnection

This function creates allocation connection with provided inputs.

Signature

CreateAllocationConnection(ComponentVolume : ProductOccurrence, ListSystemComponents : List, ListVolumePorts : List, ListSystemPorts : List, ParentForConnection : ProductOccurrence, AllocationConnection : Sys3DAllocationConnection) : Integer

Arguments

Name Input/Output Required? Type Comment
ComponentVolume In ProductOccurrence Occurrence of the component volume which is not yet allocated to any component
ListSystemComponents In List List of the system components which are to be allocated to the component volumes
ListVolumePorts In List List of the ports on the component volumes
Note: This list can be empty if an allocation between ports is not to be created
ListSystemPorts In List List of system ports or interfaces to be allocated to pathway connection points of component volume
Notes:
  • This list can be empty if the allocation between ports is not to be created.
  • This list should have the same size as the volume ports. If multiple system ports are to be allocated to the same volume port, the list of volume ports should contain the same volume port multiple times.
ParentForConnection In ProductOccurrence Parent occurrence in which a connection is to be created
AllocationConnection Out Sys3DAllocationConnection Allocation connection created

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The input volume is invalid or the allocation connection already exists for this volume.
  • 2: The list of system components is invalid: empty, or if any of the components is already allocated.
  • 3: The volume ports do not belong to the input volume.
  • 4: The list of system ports is invalid: or has a different size than the list of volume ports or not belonging to the system components in the input list.
  • 5: The function fails due to some other reason.

GetAllocationConnection

This function allows you to get an allocation connection for a system component.

Signature

GetAllocationConnection(SystemComponent : LogicalOccurrence, VolumeContext : ProductOccurrence, AllocationConnection : Sys3DAllocationConnection) : Integer

Arguments

Name Input/Output Required? Type Comment
SystemComponent In LogicalOccurrence -
VolumeContext In ProductOccurrence -
AllocationConnection Out Sys3DAllocationConnection -

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful and the allocation connection found.
  • 1: The function is successful, but no allocation connection found.
  • 2: The function failed.

If an allocation connection is found, all the linked objects can be accessed through attributes and methods on Sys3DAllocationConnection type. The connection has occurrences of logical components found in the input system components.

Get Details of an allocation for a Volume

let AllocatonCnx(Sys3DAllocationConnection)
let CnxParent(VPMReference)
let ListVolumePorts(list)
let ListSystemComponents(list)
let ListSystemPorts(list)
let VolumePort(VPMPort)
let Itf(RFLVPMSystemTypeExpositionInstance)
let LP(RFLVPMLogicalPort)
let SystemComponent(LogicalOccurrence)
let index(integer)
let index2(integer)
let sMsg(string)
let sName(string)

Notify("Allcoations for # in logical context #:", ThisObject.Name, SystemContext.Name)
	
GetAllocationConnection(ThisObject, SystemContext, AllocatonCnx)
if(NULL <> AllocatonCnx)
{
	CnxParent = AllocatonCnx.Sys3D_Parent
	ListVolumePorts = AllocatonCnx.Sys3D_ListVolumePorts
	ListSystemComponents = AllocatonCnx.Sys3D_ListSystemComponents
	ListSystemPorts = AllocatonCnx.Sys3D_ListSystemPorts
	Notify("Connection Parent: #", CnxParent.Name)
	
	index = 1
	sMsg = "List Sytem ports : "
	for index while index <= ListSystemPorts.Size()
	{
		Itf = ListSystemPorts[index]
		LP = ListSystemPorts[index]
		if(NULL <> Itf)
			sMsg = sMsg +Itf.Name() + ", "
		if (NULL <>LP)
			sMsg = sMsg +LP.Name() + ", "
	}
	Notify(sMsg)
	
	index = 1
	sMsg = "List Sytem componets : "
	for index while index <= ListSystemComponents.Size()
	{
		SystemComponent = ListSystemComponents[index]
		if(NULL <> SystemComponent)
			sMsg = sMsg +SystemComponent.Name() + ", "
	}
	Notify(sMsg)
	
	Notify("List Volume Port Connections : ")
	index = 1
	for index while index <= ListVolumePorts.Size()
	{
		VolumePort = ListVolumePorts[index]
		if(NULL <> VolumePort)
		{
			ListSystemComponents.RemoveAll()
			ListSystemPorts.RemoveAll()
			sMsg = VolumePort.V_FunctionalName + " : "
			AllocatonCnx.GetAllocatedSystemPorts(VolumePort, ListSystemComponents, ListSystemPorts)
			if(ListSystemComponents.Size() == ListSystemPorts.Size())
			{
				index2 = 1
				for index2 while index2 <= ListSystemComponents.Size()
				{
					SystemComponent = ListSystemComponents[index2]
					Itf = ListSystemPorts[index2]
					LP = ListSystemPorts[index2]
					if(NULL <> SystemComponent)
					{
						sName = SystemComponent.Name + "\\"
					}
					if(NULL <> Itf)
					{
						sName = Itf.Name
					}
					else if(NULL <> LP)
					{
						sName = LP.Name
					}
					set sMsg = sMsg + sName + ", "
				}
			}
			Notify(sMsg)
		}
	}
}

CreateRoutingRuleSet

This function allows you to create an empty volatile routing rule set, which can be used to pass the routing rule information. The rule values are filled based on the identified signal pattern.

Signature

CreateRoutingRuleSet(RoutingRuleSet : Sys3DRoutingRuleSet, Signal : Feature [, SignalContext : LogicalOccurrence]) : Integer

Arguments

Name Input/Output Required? Type Comment
RoutingRuleSet Out Sys3DRoutingRuleSet The created routing Rule set object
Signal In Feature Signal for which the rule set is to be created
SignalContext In LogicalOccurrence Logical context for the signal

By default, the rule set is initialized with the following values:

  • Level of optimization = Signal
  • Compatibility table - Signal Pathway = false

Note: If Signal is provided as optional input, the rule values are filled based on identified signal pattern.

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The second argument is not a valid signal, so the rule set is created with default values.
  • 2: The input signal is a System type reference but the System context is invalid.
  • 3: The function fails due to other reasons.

CreateAllocationSession

This function initiates the cache to hold the nodes and the arcs. You must call it before trying to access the network nodes and arcs.

Signature

CreateAllocationSession(RootContext : ProductOccurrence [, SystemContext : LogicalOccurrence]) : Integer

Arguments

Name Input/Output Required? Type Comment
RootContext In ProductOccurrence The root occurrence in the context of which the nodes and arcs will be created.
SystemContext in LogicalOccurrence The system root occurrence containing the allocable components and signals
Note: If any modification is done in the network after calling this function, it is ignored by the following functions to access the nodes and arcs. It must be called only after finalizing the modification in the network.

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The provided occurrence is not valid.
  • 2: The session is already created. You must destroy and create the session again.
  • 3: Arcs for all the pathways are not created du to pathway update status.
  • 4: The function fails due to other reasons.

DestroyAllocationSession

This function destroys the cache containing the nodes and the arcs.

Signature

DestroyAllocationSession() : Integer

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The session is not already created, so nothing is done.
  • 2: The function fails due to other reasons.

CreateComponentVolumeNode

This function creates a node for the input component volume or its port, if the same node that is already created is returned.

Signature

CreateComponentVolumeNode(CompVolNode  : Sys3DComponentVolumeNode, CompVolOcc : ProductOccurrence [, VolumePort : VPMPort]) : Integer

Arguments

Name Input/Output Required? Type Comment
CompVolNode Out Sys3DComponentVolumeNode The node object of the component volume occurrence and the ports
CompVolOcc In ProductOccurrence The volume occurrence for which a node is created
VolumePort In VPMPort The particular port of the volume involved in the node

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The context is not initialized using the CreateAllocationSession method.
  • 2: The provided occurrence is not valid.
  • 3: The port is provided but it is not valid or is not located inside the input occurrence.
  • 4: The function fails due to other reasons.

CreateDerivationVolumeNode

This function creates a node for the input derivation volume, if the same node that is already created is returned.

Signature

CreateDerivationVolumeNode(DerivationVolNode : Sys3DDerivationVolumeNode, DerivationVolOcc : ProductOccurrence) : Integer

Arguments

Name Input/Output Required? Type Comment
DerivationVolNode Out Sys3DDerivationVolumeNode The node object of the derivation volume occurrence
DerivationVolOcc In ProductOccurrence The volume occurrence for which a node is created
Note: As the derivation volume is an intermediate node, which does not have an allocation to any component in the system architecture, this node is always created with arcs connected to all the pathway connection points on it.

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The context is not initialized using the CreateAllocationSession method.
  • 2: The provided occurrence is not valid.
  • 3: The function fails due to other reasons.

CreateElementaryGroup

This function creates elementary groups for the input list of routes and the end interface volumes in their routes.

Signature

CreateElementaryGroup(ListRoutes : List, ListInterfaceVolumeNodes : List, ListElementaryGroup : List [, ElementaryGroupType : String]) : Integer

Arguments

Name Input/Output Required? Type Comment
ListRoutes In List List of all the routes for which the elementary group is to be created.

Each element must be of Sys3D_RouteOccurrence type.

ListInterfaceVolumeNodes In List List of interface volume nodes in the routes to be treated as end of elementary groupsto be created.

Each element must be of Sys3DInterfaceVolumeNode type.

The list can be empty if all the interface volumes are to be considered as intermediate volumes for elementary groups to be created.

ListElementaryGroup Out List Occurrence of elementary group created.
ElementaryGroupType In String Type of elementary group to be created.

If not provided, creation of an elementary group of OOTB type Sys3D_ElementaryGroup.

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The context is not initialized using the CreateAllocationSession method.
  • 2: The input route list is not valid.
  • 3: The input list of interface volumes is not valid.
  • 4: The provided occurrence is not valid.
  • 5: An input route for an elementary group is already created.
  • 6: The function fails due to other reasons.
  • 99: The function is not authorized due to missing role.

Example

// Route1 = ProductOccurrence
// Route2 = ProductOccurrence
// ItfVolume1 = ProductOccurrence
// ItfVolume2 = ProductOccurrence
// ItfVolume3 = ProductOccurrence

/* Action created by CVV 12/5/2025 */
let sName (String)
let sRouteName (String)
let sMessage (String)
let result (Integer)
let productOcc (ProductOccurrence)
let volOcc (Sys3D_AbstractVolumeOccurrence)
let volNode (Sys3DNetworkNode)
let listRoutes (List)
let ListElementaryGroup (List)
let listIVNodes (List)
let listInterfaceVolumes (List)

// Create List of routes
set sName = ""
if(NULL <> Route1)
{
  set sName = Route1.Name
  set sRouteName = sName
  listRoutes.Append(Route1)
}
if(NULL <> Route2)
{
  set sName = sName + "_" + Route2.Name
  set sRouteName = sRouteName + ", " + sName
  listRoutes.Append(Route2)
}

// Create List of Interface volumes
if(NULL <> ItfVolume1)
  listInterfaceVolumes.Append(ItfVolume1)
if(NULL <> ItfVolume2)
  listInterfaceVolumes.Append(ItfVolume2)
if(NULL <> ItfVolume3)
  listInterfaceVolumes.Append(ItfVolume3)

// Create Interface volume nodes
for productOcc inside listInterfaceVolumes
{
	set volOcc = productOcc
  if(NULL <> volOcc)
	{
		let cvVolOcc (Sys3D_ComponentVolumeOccurrence)
		let dvVolOcc (Sys3D_DerivationVolumeOccurrence)
		let ivVolOcc (Sys3D_InterfaceVolumeOccurrence)
		set cvVolOcc = volOcc
		set dvVolOcc = volOcc
		set ivVolOcc = volOcc
		if(NULL <> cvVolOcc)
		{
		  let cvNode (Sys3DComponentVolumeNode)
			CreateComponentVolumeNode(cvNode, cvVolOcc)
			set volNode = cvNode
		}
		else if(NULL <> dvVolOcc)
		{
		  let dvNode (Sys3DDerivationVolumeNode)
			CreateDerivationVolumeNode(dvNode, dvVolOcc)
			set volNode = dvNode
		}
		else if(NULL <> ivVolOcc)
		{
		  let ivNode (Sys3DInterfaceVolumeNode)
			CreateInterfaceVolumeNode(ivNode, ivVolOcc)
			set volNode = ivNode
		}
		if(NULL <> volNode)
    {
      listIVNodes.Append(volNode)
    }
	}
}

set sMessage = "CreateElementaryGroup: "
result = CreateElementaryGroup (listRoutes, listIVNodes, ListElementaryGroup)
set sMessage = sMessage + ": Result = " + ToString(result)
Notify(sMessage)

if(1 == result)
{
  Notify("ERROR: Session not initialized")
}
else if(2 == result)
{
  Notify("ERROR: Input Routes are invalid")
}
else if(3 == result)
{
  Notify("ERROR: Input Interface Volumes are invalid")
}
else if(4 == result)
{
  Notify("ERROR: Input Type invalid")
}
else if(5 == result)
{
  Notify("ERROR: Elementary Group already exists for input route")
}
else if(0 == result)
{
  set sMessage = " Created Elementary Groups for Routes: " + sRouteName
  Notify(sMessage)
  Notify("Created Elementary Groups: ")
  let sys3DEG (Sys3D_ElementaryGroupOccurrence)
  let index (Integer)
  set index = 1
  for sys3DEG inside ListElementaryGroup
  {
    let inst(VPMInstance)
    let ref(VPMReference)
    let sEGName(String)
    
    // Rename Elementary groups
    set sEGName = "EG" + ToString(index) + "_" + sName
    set inst = sys3DEG.Instance
    set ref = sys3DEG.Reference
    if(NULL <> ref)
      ref.V_Name = sEGName
    if(NULL <> inst)
      inst.PLM_ExternalID = sEGName + ".1"
    
    set index = index + 1
    Notify(sys3DEG.Name)
  }
}

CreateInterfaceVolumeNode

This function creates a node for the input interface volume, if the same node that is already created is returned.

Signature

CreateInterfaceVolumeNode(InterfaceVolNode : Sys3DInterfaceVolumeNode, InterfaceVolOcc : ProductOccurrence) : Integer

Arguments

Name Input/Output Required? Type Comment
InterfaceVolNode Out Sys3DInterfaceVolumeNode The node object of the derivation volume occurrence
InterfaceVolOcc In ProductOccurrence The volume occurrence for which a node is created
Note: As the interface volume is an intermediate node, which does not have an allocation to any component in the system architecture, this node is always created with arcs connected to all the pathway connection points on it.

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The context is not initialized using the CreateAllocationSession method.
  • 2: The provided occurrence is not valid.
  • 3: The function fails due to other reasons.

CreateJunctionNode

This function creates a node for the input feature, if the same node that is already created is returned. The input feature can be a pathway branch point or a pathway segment extremity.

Signature

CreateJunctionNode(JunctionNode : Sys3DJunctionNode, ParentOccurrence : ProductOccurrence, InputFeature : Feature) : Integer

Arguments

Name Input/Output Required? Type Comment
JunctionNode Out Sys3DJunctionNode The junction node created for the input feature
ParentOccurrence In ProductOccurrence The occurrence product aggregating the feature for which a node is to be created
InputFeature In Feature The feature for which a node is to be created

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The context is not initialized using the CreateAllocationSession method.
  • 2: The provided occurrence is not valid.
  • 3: The provided feature is not valid or is not inside the input occurrence.
  • 4: The function fails due to other reasons.

CreatePathwaySegmentArc

This function creates a pathway segment arc for the input feature, if the same node that is already created is returned.

Signature

CreatePathwaySegmentArc(PathwaySegmentArc : Sys3DPathwaySegmentArc, PathwayGeometryOcc : ProductOccurrence, PathwaySegment : Feature) : Integer

Arguments

Name Input/Output Required? Type Comment
PathwaySegmentArc Out Sys3DPathwaySegmentArc The created pathway segment arc
PathwayGeometryOcc In ProductOccurrence The occurrence product aggregating the segment for which a node is to be created
PathwaySegment In Feature Feature for which node is to be created

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The context is not initialized using the CreateAllocationSession method.
  • 2: The provided occurrence is not valid.
  • 3: The provided feature is not valid or is not inside the input occurrence.
  • 4: The function fails due to other reasons.

CreateNetworkPath

This function creates a network path from the input arcs.

Signature

CreateNetworkPath(NetworkPath : Sys3DNetworkPath, ListArcs : List, StartNode : Sys3DNetworkNode, EndNode : Sys3DNetworkNode) : Integer

Arguments

Name Input/Output Required? Type Comment
NetworkPath Out Sys3DNetworkPath Create the network path
ListArcs In List List of the connected arcs from which the network path is to be created
StartNode In Sys3DNetworkNode First node of the network path to be created
EndNode In Sys3DNetworkNode Last node of the network path to be created

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The input list or the nodes are empty.
  • 2: The input list contains an arc that is not connected. The network path created is not valid.
  • 3: The function fails due to other reasons.

CreateSignalRoute

This method creates a new PLM route object for input signal.

Signature

CreateSignalRoute(Signal : Feature, ParentOccurrence : ProductOccurrence, RouteForSignal : Sys3D_RouteOccurrence, SignalContext : LogicalOccurrence) : Integer

Arguments

Name Input/Output Required? Type Comment
Signal In Feature Signal for which the route object is to be created
ParentOccurrence In ProductOccurrence Parent occurrence in which the PLM route is to be created
RouteForSignal Out Sys3D_RouteOccurrence The PLM route occurrence created for the input signal
SignalContext In LogicalOccurrence If the signal is of a system type reference, the root logical occurrence aggregating the signal should be passed

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful and the PLM route is created.
  • 1: The input signal is invalid.
  • 2: The parent occurrence is invalid.
  • 3: The PLM route object already exists, so a new PLM route is not created.
  • 4: The signal context is missing for the system type reference.
  • 5: The function fails due to some other reason.

FindSignalRoute

This method returns the PLM route object for the input signal.

Signature

FindSignalRoute(Signal : Feature, ParentOccurrence : ProductOccurrence, RouteForSignal : Sys3D_RouteOccurrence, SignalContext : LogicalOccurrence) : Integer

Arguments

Name Input/Output Required? Type Comment
Signal In Feature Signal for which the route object that is to be retrieved.
ParentOccurrence In ProductOccurrence Parent occurrence inside which the PLM route is to be searched for.
RouteForSignal Out Sys3D_RouteOccurrence The PLM route occurrence found for input signal.
SignalContext In LogicalOccurrence If the signal is of a system type reference, the root logical occurrence aggregating the signal should be passed.

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful and the PLM route is created.
  • 1: The input signal is invalid.
  • 2: The parent occurrence is invalid.
  • 3: The PLM route object does not exist for input signal.
  • 4: The signal context is missing for the system type reference.
  • 5: The function fails due to some other reason.

UpdateRoute()

This function updates the route for the provided input signal.

Signature

UpdateRoute(Signal : Feature, RootContext : ProductOccurrence, RootContext : LogicalOccurrence) : Integer

Arguments

Name Input/Output Required? Type Comment
Signal In Feature Signal feature for which the route object is to be updated.
RootContext In ProductOccurrence CAM root context.
SystemContext In LogicalOccurrence Logical or system root occurrence which will be the context for the signal.

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The input signal is invalid.
  • 2: The input RootContext is invalid.
  • 3: The input SystemContext is invalid.
  • 4: The allocation session is not created.
  • 5: The route is partially updated.
  • 6: The route status is empty.
  • 7: The function fails.

GetAllocationConnection

This function allows you to get an allocation connection for a volume.

Signature

GetAllocationConnection(Volume : ProductOccurrence, SystemContext : LogicalOccurrence, AllocationConnection : Sys3DAllocationConnection) : IntegerProductOccurrence

Arguments

Name Input/Output Required? Type Comment
Volume In ProductOccurrence -
SystemContext In LogicalOccurrence -
AllocationConnection Out Sys3DAllocationConnection -

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful and allocation connection found.
  • 1: The function is successful, but no allocation connection found.
  • 2: The function failed.

Get Details of an Allocation for a System Component

let AllocatonCnx(Sys3DAllocationConnection)
let CnxParent(VPMReference)
let ListVolumePorts(list)
let ListSystemComponents(list)
let ListSystemPorts(list)
let VolumePort(VPMPort)
let Itf(RFLVPMSystemTypeExpositionInstance)
let LP(RFLVPMLogicalPort)
let ConnectedVolume(ProductOccurrence)
let index(integer)
let sMsg(string)

Notify("Allcoations for # in CAM context #:", ThisObject.Name, VolumeContext.Name)

GetAllocationConnection(ThisObject, VolumeContext, AllocatonCnx)
if(NULL <> AllocatonCnx)
{
	CnxParent = AllocatonCnx.Sys3D_Parent
	ConnectedVolume = AllocatonCnx.Sys3D_Volume
	ListVolumePorts = AllocatonCnx.Sys3D_ListVolumePorts
	ListSystemPorts = AllocatonCnx.Sys3D_ListSystemPorts
	Notify("Connection Parent: #", CnxParent.Name)
	Notify("Allocated Volume: #", ConnectedVolume.Name)
	
	index = 1
	sMsg = "List Sytem ports : "
	for index while index <= ListSystemPorts.Size()
	{
		Itf = ListSystemPorts[index]
		LP = ListSystemPorts[index]
		if(NULL <> Itf)
			sMsg = sMsg +Itf.Name() + ", "
		if (NULL <>LP)
			sMsg = sMsg +LP.Name() + ", "
	}
	Notify(sMsg)
	
	index = 1
	sMsg = "List volume ports  : "
	for index while index <= ListVolumePorts.Size()
	{
		VolumePort = ListVolumePorts[index]
		if(NULL <> VolumePort)
			sMsg = sMsg +VolumePort.V_FunctionalName + ", "
	}
	Notify(sMsg)
	
	Notify("List System Port Connections : ")
	index = 1
	for index while index <= ListSystemPorts.Size()
	{
		sMsg = ""
		Itf = ListSystemPorts[index]
		LP = ListSystemPorts[index]
		VolumePort = NULL
		if(NULL <> Itf)
		{
			sMsg = sMsg +Itf.Name + " : "
			AllocatonCnx.GetAllocatedVolumePort(Itf, ThisObject, VolumePort)
		}
		if (NULL <>LP)
		{
			sMsg = sMsg +LP.Name + " : "
			AllocatonCnx.GetAllocatedVolumePort(LP, ThisObject, VolumePort)
		}
			
		if(NULL <> VolumePort)
			sMsg = sMsg + VolumePort.V_FunctionalName
		Notify(sMsg)
	}
}

GetElementaryGroups

This function returns the list of end volumes of the elementary group.

Signature

GetElementaryGroups(Route : Sys3D_RouteOccurrence, ListElementaryGroup : List) : Integer

Arguments

Name Input/Output Required? Type Comment
Route In Sys3D_RouteOccurrence Route for which an elementary group is needed.
ListElementaryGroup Out List List of occurrences of the elementary group found from the input route.

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful and the elementary group is found..
  • 1: The context is not initialized using the CreateAllocationSession method.
  • 2: The function fails due to some other reason.
  • 99: The function is not authorized due to missing role.

Example

// Route = Sys3D_RouteOccurrence

/* Action created by CVV 12/5/2025 */
let sSegID (String)
let sMessage (String)
let result (Integer)
let sys3DEG (Sys3D_ElementaryGroupOccurrence)
let listEGs (LIST)
let listRoutes (LIST)

set sMessage = "GetElementaryGroups " + Route.Name + ": "
set result = GetElementaryGroups (Route, listEGs)
set sMessage = sMessage + "Result = " + ToString(result)
Notify(sMessage)

if(1 == result)
{
  Notify("ERROR: Session not initialized")
}
else if(2 == result)
{
  Notify("ERROR: Failed to retrieve Intermediate Volumes")
}
else if(0 == result)
{
  // Notify the elementary groups
  Notify("Elementary Groups: ")
  for sys3DEG inside listEGs
  {
    Notify(sys3DEG.Name)
  }
}

GetElementaryGroups

This function returns the list of end volumes of the elementary group.

Signature

GetElementaryGroups(VolumeNode : Sys3DNetworkNode, ListElementaryGroup : List [, ListRoutes : List]) : Integer

Arguments

Name Input/Output Required? Type Comment
VolumeNode In Sys3DNetworkNode Volume node for which the elementary group is needed.
ListElementaryGroup Out List List of occurrences of the elementary group found from the input volume.
ListRoutes In List List of the route occurrences for which the elementary group is required.

Optional:

  • If Empty, all the elementary groups created with input volumes are returned.
  • If input routes are provided, only elementary groups created with input volumes and input routes are returned.

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful and the elementary group is found..
  • 1: The context is not initialized using the CreateAllocationSession method.
  • 2: The optional arguments are invalid.
  • 3: The function fails due to some other reason.
  • 99: The function is not authorized due to missing role.

Example

// Vol = Sys3D_AbstractVolumeOccurrence
// Route = ProductOccurrence

/* Action created by CVV 12/5/2025 */
let sSegID (String)
let sMessage (String)
let result (Integer)
let sys3DEG(Sys3D_ElementaryGroupOccurrence)
let sys3DNode (Sys3DNetworkNode)
let sys3DCVNode (Sys3DComponentVolumeNode)
let sys3DIVNode (Sys3DInterfaceVolumeNode)
let sys3DDVNode (Sys3DDerivationVolumeNode)
let sys3DCV (Sys3D_ComponentVolumeOccurrence)
let sys3DIV (Sys3D_InterfaceVolumeOccurrence)
let sys3DDV (Sys3D_DerivationVolumeOccurrence)
let inRootContext(ProductOccurrence)
let listEGs (LIST)
let listRoutes (LIST)

// Create Volume Node from input
set sys3DCV = Vol
set sys3DIV = Vol
set sys3DDV = Vol
if(NULL <> sys3DCV)
{
  CreateComponentVolumeNode(sys3DCVNode, Vol)
  if(NULL <> sys3DCVNode)
  	set sys3DNode = sys3DCVNode
}
else if(NULL <> sys3DIV)
{
  CreateInterfaceVolumeNode(sys3DIVNode, Vol)
  if(NULL <> sys3DIVNode)
  	set sys3DNode = sys3DIVNode
}
else if(NULL <> sys3DDV)
{
  CreateDerivationVolumeNode(sys3DDVNode, Vol)
  if(NULL <> sys3DDVNode)
  	set sys3DNode = sys3DDVNode
}

// Fill the list of route, if selected
if(NULL <> Route)
{
  listRoutes.Append(Route)
}

// Call the function
set sMessage = "GetElementaryGroups for Volume = " + Vol.Name + ": "
if(1 <= listRoutes.Size())
{
  set result = GetElementaryGroups (sys3DNode, listEGs, listRoutes)
}
else
{
  set result = GetElementaryGroups (sys3DNode, listEGs)
}
set sMessage = sMessage + "Result = " + ToString(result)
Notify(sMessage)

if(1 == result)
{
  Notify("ERROR: Session not initialized")
}
else if(2 == result)
{
  Notify("ERROR: Input Routes are invalid OR it is not routed through input Volume")
}
else if(0 == result)
{
  // Notify the elementary groups
  Notify("Elementary Groups: ")
  for sys3DEG inside listEGs
  {
    Notify(sys3DEG.Name)
  }
}

GetElementaryGroups

This function returns the list of end volumes of the elementary group.

Signature

GetElementaryGroups(SegmentID : String, CAMContext : ProductOccurrence, ListElementaryGroup : List [, ListRoutes : List]) : Integer

Arguments

Name Input/Output Required? Type Comment
SegmentID In List UUID of segment for which the elementary group is needed.
CAMContext In ProductOccurrence System 3D Architecture root occurrence in which the search is to be performed.
ListElementaryGroup Out List List of occurrences of the elementary group found from the input segment.

Optional:

  • If Empty, all the elementary groups created with input segments are returned.
  • If input routes are provided, only elementary groups created with input segments and input routes are returned.

ListRoutes In List -

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful and the elementary group is found..
  • 1: The context is not initialized using the CreateAllocationSession method.
  • 2: The optional arguments are invalid.
  • 3: The function fails due to some other reason.
  • 99: The function is not authorized due to missing role.

Example

// Segment = Sys3DPathwaySegment
// Route = ProductOccurrence
// Context = ProductOccurrence

/* Action created by CVV 12/5/2025 */
let sSegID (String)
let sMessage (String)
let result (Integer)
let sys3DEG (Sys3D_ElementaryGroupOccurrence)
let listEGs (LIST)
let listRoutes (LIST)

// Fill the list of route, if selected
if(NULL <> Route)
{
  listRoutes.Append(Route)
}

// Call the function
set sSegID = Segment.Sys3D_SegmentID
set sMessage = "GetElementaryGroups for Segment ID = " + sSegID + ": "
if(1 <= listRoutes.Size())
{
  set result = GetElementaryGroups (sSegID, Context, listEGs, listRoutes)
}
else
{
  set result = GetElementaryGroups (sSegID, Context, listEGs)
}
set sMessage = sMessage + "Result = " + ToString(result)
Notify(sMessage)

if(1 == result)
{
  Notify("ERROR: Session not initialized")
}
else if(2 == result)
{
  Notify("ERROR: Input Routes are invalid OR it is not routed through input Segment")
}
else if(0 == result)
{
  // Notify the elementary groups
  Notify("Elementary Groups: ")
  for sys3DEG inside listEGs
  {
    Notify(sys3DEG.Name)
  }
}

GetLinkedEndsForRoutedSignal

This function searches and returns the emitter/receiver ends of the signals from the input route, which are routed through the segment having input ID.

Signature

GetLinkedEndsForRoutedSignal(RouteForSignal : Sys3D_RouteOccurrence, SegmentID : String, SystemRootContext : LogicalOccurrence, ListFromEnds : List, ListToEnds : List, ListFromToFeatures : List) : Integer

Arguments

Name Input/Output Required? Type Comment
RouteForSignal In Sys3D_RouteOccurrence The PLM route occurrence created for the input signal
SegmentID In String ID of the segment stored in the light model, saved for interferences
SystemRootContext In LogicalOccurrence Logical or system root occurrence which will be the context for the returned signals
ListFromEnds Out List List containing the emitters of the signal which are linked
ListToEnds Out List List containing the receivers of the signal which are linked
ListFromToFeatures Out List List containing the From-To features of the signal which are linked
Note: If all the From - To elements of the signal are not routed, the output list may be incomplete.

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The input route is invalid or not routed.
  • 2: The segment ID is invalid or not present in the route.
  • 3: The context is invalid
  • 4: The function fails.

GetRoutedSignals

This function searches and returns the signals which are routed through the segment having input ID.

Signature

GetRoutedSignals(SegmentID : String, RootContext : ProductOccurrence, LogicalRootContext : LogicalOccurrence, ListOfSignals : List) : Integer

Arguments

Name Input/Output Required? Type Comment
SegmentID In String ID of the segment stored in the light model saved for interferences
RootContext In ProductOccurrence CAM root context in which the impacted PLM routes are to be searched
LogicalRootContext In LogicalOccurrence Logical or system root occurrence which will be the context for the returned signals
ListOfSignals Out List List containing the routed signals

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The CAM Root context is invalid.
  • 2: The logical root context is invalid.
  • 3: The SegmentID input is invalid.
  • 4: The function fails.

GetSignalFromTos

This function retrieves From and To components.

Signature

GetSignalFromTos(Signal : Feature, ListOfFroms : List, ListOfTos : List, SignalContext : LogicalOccurrence) : Integer

Arguments

Name Input/Output Required? Type Comment
Signal In Feature Signal for which From and To components to be retrieved
ListOfFroms Out List List of From components
ListOfTos Out List List of To components
SignalContext In LogicalOccurrence Logical system context

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The signal is invalid.
  • 2: The signal is a system type reference and the context is not provided.
  • 3: The function fails.

RemoveBrokenAllocationConnections

This function recursively removes broken allocation connections in the input context. The information about the deleted system components and its ports are removed only from the allocation connection.

Signature

RemoveBrokenAllocationConnections(CAMContext : ProductOccurrence) : Integer

Arguments

Name Input/Output Required? Type Comment
CAMContext In ProductOccurrence Occurrence of the context in which the connection is to be found and removed from the allocation.
Note:
  • If all the components are deleted, the connection is removed completely.
  • If the components are still existing, but not loaded in the session, the allocation connection is not deleted.

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful.
  • 1: The removal of the broken allocation connection failed.
  • 2: The function fails due to some other reason.

RepairInconsistantAllocationConnections

This function updates the allocation connection information based on the first reference-reference implement link, moves the allocation connection to the parent of the component volume if it is in an incorrect context, and removes the broken allocation connections.

Signature

RepairInconsistantAllocationConnections(CAMContext : ProductOccurrence, ListOfSystemContext : List) : Integer

Arguments

Name Input/Output Required? Type Comment
CAMContext In ProductOccurrence The CAM Root for which allocation connections are updated.
ListOfSystemContext In List The list of the system context roots for which allocation connections are updated.

ReturnType

Integer

The function can return one of the following values:

  • 0: The function is successful and all inconsistent connections, if any, are repaired.
  • 1: The list of system context input is invalid.
  • 2: The CAMContext has no reference-reference implement link with a logical roots input.
  • 3: The function fails due to some other reason.