Compute Element Type (Sys3D_ComputeElementType)

An opening ID is an entry point used to customize business logic. The Sys3D_ComputeElementType computes system components which can be allocated.

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 using:

  • The Allocation Assistant
  • The Signal Routing Assistant

This opening ID is used to compute system components which can be allocated.

Definition Description
PLM Opening ID Sys3D_ComputeElementType
Customization intent Compute
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: ProductOccurrence: Root occurrence in which the Allocation Assistant panel is launched.
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
ListElements List Read Lists the logical occurrences to get their type.
ListTypes List Write Lists the elements that can be allocated, based on their type. If the logical occurrence is a system component which can be allocated to a volume, the string will be AllocableComponent, otherwise the list will have an empty string.
Note: The output list must have the same size as the input list. If the size of the two lists does not match, the output is ignored.

After the execution of the business rule, if the output contains a parent and children which can be allocated, both are considered as allocable.

Allocation with Intermediate Components

The following sample shows the signal routing process between non-terminal logical components allocated to volumes.

Before launching the Sys3D_ComputeElementType opening ID, the following actions are performed:

  • Creation of signals between the components.
  • Creation of roots with component volumes for each object shown below with the AllocableComponent description and a network between them.


The following Sys3D_ComputeElementType opening ID is launched.

/* CATRule signature (do not edit) : (ThisObject : #In ProductOccurrence, Parameters : #In RuleContext) : VoidType */

let iList(List)
let listOfTypes(List)
let lsize(Integer)
let logOcc (LogicalOccurrence)

set iList = Parameters.GetAttributeObject("ListOfElements")
for logOcc inside iList
{
	let logRef (RFLVPMLogicalReference)
	let logInst (RFLVPMLogicalInstance)
	let sEntityType (String)
	
	set logInst =  logOcc.Instance
	set logRef =  logOcc.Reference
	if(NULL <> logInst)
		set sEntityType = logInst.V_description
		
	if( (sEntityType == "") and (NULL <> logRef))
	  set sEntityType = logRef.V_description

	listOfTypes.Append(sEntityType)
}
Parameters.SetAttributeObject("ListOfTypes", listOfTypes )

After running the Sys3D_ComputeElementType opening ID, the following actions are performed:

  • Opening of the logical and physical data and activation of the physical root.
  • The Allocation Assistant command is launched after selecting the Sub_1ENRs.1 component.

As a result, the Allocation Assistant Panel displays intermediate nodes such as Component19.1. Without the Sys3D_ComputeElementType opening ID customization, only the leaf elements are displayed in the Allocation Assistant Panel as components that can be allocated.