Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
L2PPhysicalRoot | PLM Entity |
Read | The input physical root in which the corresponding physical element is
to be searched.
|
L2PPhysicalElement | PLM Entity |
Read | The output corresponding physical element.
|
L2PCreateImplementLink | Boolean |
Write | The output Boolean, that should be set as TRUE, is an implement link that should
be created during synchronization.
|
L2PCreateRefRefLink | Boolean | Write | This parameter is added to the rule if ThisObject is a system.Moreover, the output is used only if an implement link is to be created, that is output L2PCreateImplementLink returns TRUE. For more information, see Electrical 3D Design User's Guide: Synchronizing Physical Data with Logical Data: Synchronizing in an Intermediate Level. |
Sample
The following sample illustrates how to find a correspondence between the instance name of a physical component and the Subtype attribute of logical component. This correspondence enables the creation of an implement link between the two components.
/* ThisObject = RFLVPMLogicalInstance */
let ChildtoplaceEQT (Feature)
let Listchild (List)
let PhysRoot (VPMReference)
let index (Integer)
let nbChild (Integer)
let Child (Feature)
let SubType(String)
let Feature(Feature)
set index = 1
PhysRoot = Parameters.GetAttributeObject("L2PPhysicalRoot")
Listchild = PhysRoot.Children
nbChild = Listchild->Size()
For index while index <= nbChild
{
set Child = Listchild->GetItem(index)
Feature = ThisObject.Reference
SubType = Feature.GetAttributeString("V_Ens_SubType")
if(Child.Name == SubType)
{
Parameters.SetAttributeObject("L2PPhysicalElement", Child)
Parameters.SetAttributeBoolean("L2PCreateImplementLink", true)
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", " Corresponding Physical Found" )
}
else
{
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", " Physical not Found ")
}
}