General InformationThis opening ID is invoked during the commands creating or removing association link between net\wires and between net group\cables. 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 modify the properties of entities after the creation or the deletion of links between net/wires and net group/cables. /* Rule : ELE_ModifyAllocationNet */
/*
ThisObject : #In RFLVPMLogicalInstance
Parameters : #In RuleContext
*/
let sMode (String) /* "Add" or "Remove" modes */
let ActionList (List) /* Ends to validate action on */
let ExistingList (List) /* Existing ends */
let nbActionEnds (Integer)
let nbExistingEnds (Integer)
let ActionEnd (RFLVPMLogicalInstance)
let ExistingEnd (RFLVPMLogicalInstance)
let i (Integer)
let ObjID=""
let description=""
set sMode = Parameters->GetAttributeString("Mode")
set ActionList = Parameters->GetAttributeObject("ActionList")
set ExistingList = Parameters->GetAttributeObject("ExistingList")
nbActionEnds = ActionList->Size()
nbExistingEnds = ExistingList->Size()
set i = 1
if (sMode == "Add")
{
description = "Add: "
for i while i <= nbActionEnds
{
ActionEnd = ActionList.GetItem (i)
if ActionEnd <> NULL
{
ObjID = ActionEnd->GetAttributeString("PLM_ExternalID")
description = description + " -" + ObjID
}
}
ThisObject->SetAttributeString("V_description", description)
}
if (sMode == "Remove")
{
description = "Remove: "
for i while i <= nbActionEnds
{
ActionEnd = ActionList.GetItem (i)
if ActionEnd <> NULL
{
ObjID = ActionEnd->GetAttributeString("PLM_ExternalID")
description = description + " -" + ObjID
}
}
ThisObject->SetAttributeString("V_description", description)
}
| |||||||||||||||||||||||||||||