General InformationThis opening ID is invoked when a generate the legend table. This opening ID is used to customize the designation column of the route legend table, which corresponds to name of an object type.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleIn the following sample, the input for the rule is fetched through the ObjectName attribute, and the output is set through the legendCategory attribute which is a concatenation of (input-parameter) object name and separation code.
Let LegendValue = ""
Let SepCode=""
Let Seg(Segment)
Let Cond(Conductor)
set LegendValue = Parameters -> GetAttributeString("ObjectName")
set Cond = ThisObject
set Seg = ThisObject
if(NULL <> Seg)
{
set LegendValue = LegendValue + Seg.Elec_Segreg
}
else if(NULL <> Cond)
{
set LegendValue = LegendValue + Cond.Elec_Sep_Code
}
Parameters -> SetAttributeString("legendCategory",LegendValue)
The output for the above rule produces a sample legend table as shown below: | |||||||||||||||||||||||