General InformationThis opening ID is invoked when a cableway or a branch is placed or refreshed in location plan view.
The 2D route representing the branch can be any of the following depending on the type of
branch: Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleIn the following sample, the rule returns a different symbol name and graphic attributes for main and called representations.
Let sSymbolName(string)
Let LGraphicAttrNames(list)
LGraphicAttrNames.Append("Sch_LineColor")
LGraphicAttrNames.Append("Sch_LineThickness")
LGraphicAttrNames.Append("Sch_LineType")
Let LGraphicAttrValues(list)
Let LRGB(list)
Let bIsMain(Boolean)
set bIsMain = Parameters.GetAttributeBoolean("Is_Main")
if(true == bIsMain)
{
set sSymbolName="MainSymbol"
LRGB.Append(0)
LRGB.Append(255)
LRGB.Append(0)
LGraphicAttrValues.Append(LRGB)
LGraphicAttrValues.Append(2)
LGraphicAttrValues.Append(1)
}
else if(false == bIsMain)
{
set sSymbolName="CalledSymbol"
LRGB.Append(255)
LRGB.Append(0)
LRGB.Append(0)
LGraphicAttrValues.Append(LRGB)
LGraphicAttrValues.Append(5)
LGraphicAttrValues.Append(3)
}
Parameters.SetAttributeString("Symbol_Name", sSymbolName)
Parameters.SetAttributeObject("List_Visualization_Attr_Names", LGraphicAttrNames)
Parameters.SetAttributeObject("List_Visualization_Attr_Values" , LGraphicAttrValues)
| |||||||||||||||||||||||||||||||||||||||