English

How To: Change the legend classification to single symbol for a theme in a project by editing the .apr file

Summary

Instructions provided show how to change the legend classification to single symbol for a theme in a project by editing the .apr file with a text editor.

Procedure

  1. Open the .apr in a text editor such as WordPad or Notepad.

    Warning:
    Always make a backup before making any edits to an .apr file.

  2. Search for the name of the theme whose legend you wish to change.
  3. Locate the Legend legend and take note of its number. In this example it is 34.

    Code:
    (FTheme.15
    Name: "Sample.shp"
    Source: 16
    Flags: 0x07
    Legend: 34
    Threshold: 138
    View: 5
    GSet: 139
    LegEditScript: "View.EditLegend"
    TxPos: 140
    LabelField: 25
    )

  4. Preform a search for Legend.#. In this example Legend.34 would return the following:

    Code:
    (Legend.34
    SymType: 0x02
    LegType: 0x08
    ClassType: 0x03
    FieldNames: 35
    Symbols: 36
    Class: 113
    Class: 114
    Class: 115
    Class: 116
    Class: 117
    Class: 118
    Class: 119
    Class: 120
    Class: 121
    Class: 122
    Class: 123
    Class: 124
    Class: 125
    Class: 126
    Class: 127
    Class: 128
    Class: 129
    Class: 130
    Class: 131
    StdDevs: 1.00000000000000
    NullSym: 132
    NullValues: 136
    StatValues: 137
    Precision: -3
    )

  5. Locate the LegType line and change its value. In this example, change 0x08 to 0x01.
  6. Save the file.
  7. Open the project and view with the theme.

    Note:
    The Table of Contents will appear classified but the theme will be one color, symbol, and so forth.

  8. In the legend editor, change the classification to something other than single symbol.
  9. Click Apply.
  10. Change the classification back to single symbol.
  11. Click Apply.
  12. Save the project.

Related Information