General InformationThis opening ID is invoked during analysis of logical equipment which is to be created in physical. This opening ID is used during the Logical to Physical synchronization to decide the aggregating product in which equipment is to be placed during synchronization. The table below provides you with information related to the definition of the Opening ID.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe following sample illustrates how to find a correspondence between the instance name of a product and the Subtype attribute of a logical component. This correspondence enables to place the equipment under the aggregating product. /* 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("L2PPhysicalFather", Child)
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", " Physical Father Found " )
}
else
{
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", "Physical Father matching Logical Subtype / Physical Product Name not Found ")
}
} | |||||||||||||||||||||||||