Select to view content in your preferred language

Change Label next to Symbol in Table of Contents for the Legend

2262
2
10-01-2013 03:14 PM
RandyDeodat
Deactivated User
I'm trying to write a script to change the label next to the symbol in the TOC so it appears in the legend. Arcpy has a way to change the name of the layer, but I can't seem to find a way to change the text one level below that. They also have a way to change unique symbol texts and descriptions, but that's not what I need either. Am I just missing it in the tutorials/help pages?

It's just the text box in the layer's Properties under the Symbology tab. There's a box that says "Legend" and then "Label appearing next to the symbol in table of contents." I've attached a picture of the box that I want to change. It's where it says "Positive CSC". Any help would be appreciated.

Thanks
Tags (2)
0 Kudos
2 Replies
ChrisPedrezuela
Frequent Contributor
Cant you just use the layer name itself in the TOC as label in your Legend? If your using the layer name for a different purpose, you can also use it in tandem with a layer description as long as you set it up with a single unique symbol with a description. Seems a fairly simple approach without resorting to scripting. 

I'm trying to write a script to change the label next to the symbol in the TOC so it appears in the legend. Arcpy has a way to change the name of the layer, but I can't seem to find a way to change the text one level below that. They also have a way to change unique symbol texts and descriptions, but that's not what I need either. Am I just missing it in the tutorials/help pages?

It's just the text box in the layer's Properties under the Symbology tab. There's a box that says "Legend" and then "Label appearing next to the symbol in table of contents." I've attached a picture of the box that I want to change. It's where it says "Positive CSC". Any help would be appreciated.

Thanks
0 Kudos
RandyDeodat
Deactivated User
Yeah, I can. However we have 100s of maps that need that label changed, to reflect in the legend. Some of the maps have the same layer name with a definition query on them, so searching for the layer name would take both layers and changing them when we would only want one changed. I also thought of saving the layer as a .lyr file and then reassigning the symobology to the layer then changing the layer name in the map, but that doesn't get rid of that text.
0 Kudos