Compute Logical Candidate for Reconcile (L2P_ReconcileWithLogical)

An opening ID is an entry point used to customize business logic. The Compute Logical Candidate for Reconcile opening ID is available in the Logical to Physical Assistant Resources resource set.

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

This page discusses:

General Information

This opening ID is invoked to compute the logical candidate of reconcile for an input item.

Definition Description
PLM Opening ID L2P_ReconcileWithLogical
Customization intent Computation
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: an L2PItem object, containing the data found during the analysis of that selected Object. The 2D component parameter is empty at this stage, but the 3D component parameter carries a value.
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
ListInputObjects List Read List of 2D occurrences candidates.
LogicalContext LogicalOccurrence Read The lowest context in 2D having the reference-reference implement link.
LogicalElement LogicalOccurrence Write The 2D occurrence to be used for the reconciliation. It can be a different one from the ones sent as ListInputObjects, but it needs to adhere to the condition that it is inside the context sent as LogicalContext.
IgnoreComputedCandidates Boolean Write If the parameter LogicalElement is returned NULL, the IgnoreComputedCandidates parameter, if true, allows you to specify that none of the candidates are valid for reconcile.

Sample

let EqOcc2D(LogicalOccurrence)
let logRef (RFLVPMLogicalReference)
let EqOcc2DList(list)
let Occ3D (ProductOccurrence)
set Occ3D = ThisObject.Facet3D

let root2D(LogicalOccurrence)
set root2D= Parameters.GetAttributeObject("LogicalContext")

// Search the logical equipment in the logical context provided by L2P through attribute LogicalContext
if root2D <> NULL
{
    if (ThisObject.Family == "Equipment")
    {
		// Find the logical equipment with same name as the 3D facet of physical equipment
		EqOcc2DList  = root2D.Query("LogicalOccurrence","")
		for EqOcc2D inside EqOcc2DList
		{
			set logRef = EqOcc2D.Reference
			if(logRef.IsASortOf("EnsLogicalEquipment") and EqOcc2D.Name == Occ3D.Name)
			{
				Parameters.SetAttributeObject("LogicalElement", EqOcc2D)
				break
			}
		}
    }
}