Define line type for branch categories (ESD_DefineLineTypeForBranch)

An opening ID is an entry point used to customize business logic. The ESD_DefineLineTypeForBranch opening ID defines the different line types corresponding to branch categories. Representing the branches or cableways using a particular line type enhances the readability of the location plan views.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked when a cableway or a branch is placed or refreshed in location plan view.

Definition Description
PLM Opening ID ESD_DefineLineTypeForBranch
Customization intent Computation
Execution context Client

The 2D route representing the branch can be any of the following depending on the type of branch:

Input Objects

Input objects must be of the following types:

  • ThisObject: Segment
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
LineType Integer Write Defines the type of line for the branch
LineThickness Integer Write Defines the line thickness
ColorRed Integer Write Defines the red value
ColorGreen Integer Write Defines the green value
ColorBlue Integer Write Defines the blue value

Sample

In 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)