Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
L2PLogicalRoot | PLM Entity |
Read | The input logical root in which corresponding logical element is to
be searched.
|
L2PLogicalElement | PLM Entity |
Read | The output corresponding logical element.
|
L2PCreateImplementLink | Boolean |
Write | The output Boolean, should be set as TRUE, is the 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 an instance name correspondence between a physical component and a logical component. This correspondence enables the creation of an implement link between the two components.
/* ThisObject = VPMInstance */
let ChildtoplaceEQT (Feature)
let Listchild (List)
let LogRoot (RFLVPMLogicalReference)
let index (Integer)
let nbChild (Integer)
let Child (Feature)
let ComponentName(String)
let Feature(Feature)
set index = 1
LogRoot = Parameters.GetAttributeObject("L2PLogicalRoot")
Listchild = LogRoot.Children
nbChild = Listchild->Size()
For index while index <= nbChild
{
set Child = Listchild->GetItem(index)
Feature = ThisObject.Reference
ComponentName = Feature.Name
if(Child.Name == ComponentName)
{
Parameters.SetAttributeObject("L2PLogicalElement", Child)
Parameters.SetAttributeBoolean("L2PCreateImplementLink", true)
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", " Corresponding Logical Found" )
}
else
{
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", " Logical not Found ")
}