Script Detailed Description


This script displays the emissions level at each node. It defines 4 ranges of emissions values and colors the node by which the range which corresponds to its emissions level. The script offers the user two options for display: display by relative emissions values or by absolute emissions values.

This color-coded display is created through manipulating the theme's legend. The main steps to defining an appropriate legend are:

  1. Get the legend
  2. Set two colors. A color ramp is created between these colors.
  3. Set the legend type
  4. Indicate which field in the table is being used and how these values will be divided
  5. Set the size of the displayed points
  6. Define the ranges
  7. Update the legend

Key Avenue commands used:
aFtab.FindField
aTheme.GetLegend
aLegend.GetSymbols
Color.GetaColor
aLegend.SetLegendType
aLegend.Interval
aSymbolList.RampColors
aLegend.DisplayNoDataClass
aSymbolList.RampSizes
aFtab.ReturnValueNumber
aTheme.UpdateLegend

Return to main document