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