Context Object Parameters
| Parameter Name |
Type |
Read or Write |
Comments |
ListInputObjects |
List |
Read |
List of 3D occurrences candidates. |
PhysicalContext |
ProductOccurrence |
Read |
The lowest context in 3D having the reference-reference
implement link. |
PhysicalElement |
ProductOccurrence |
Write |
The 3D 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 inside the context sent as
PhysicalContext. |
IgnoreComputedCandidates |
Boolean |
Write |
If the parameter PhysicalElement is returned
NULL, the IgnoreComputedCandidates parameter,
if true, allows you to specify that none of the candidates are valid for
reconcile. |
Sample
let EqOcc3D(SharedEquipmentPartOccurrence)
let Occ2D (LogicalOccurrence)
set Occ2D = ThisObject.Facet2D
let root3D(ProductOccurrence)
set root3D= Parameters.GetAttributeObject("PhysicalContext")
// Search the physical equipment in the physical context provided by L2P through attribute PhysicalContext
if root3D <> NULL
{
if (ThisObject.Family == "Equipment")
{
EqOcc3D = root3D->Find( "SharedEquipmentPartOccurrence", "x.Name == \"" + Occ2D.Name + "\"", true )
if EqOcc3D <> NULL
{
Parameters.SetAttributeObject("PhysicalElement", EqOcc3D)
}
}
}