Assign Designation in Legend Table for Routes (RouteTable_LegendCategory)

An opening ID is an entry point used to customize business logic. The RouteTable_LegendCategory opening ID customizes the designation column of the route legend table using a business rule. To ensure a proper understanding of the custom polylines, a legend table is usually added in the location plan view or sheet.

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 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.

Definition Description
PLM Opening ID RouteTable_LegendCategory
Customization intent Execution
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: Segment Feature or Conductor Feature
  • ObjectName: This is the name of the entity pointed by route symbol. The type of this attributre is String
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
legendCategory String Read Specific attribute (designation name) of the input entity.

You can defined the attribute of the input entity.

Sample

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