I have numerous layers with different class ranges and would like to export range values as plain text to use elsewhere, rather than ctrl-c ctrl-v for each class in each layer.
Following the pointer from @Vince I've tried the following ArcPy script built through advice at http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/labelclass-class.htm
import arcpy mxd = arcpy.mapping.MapDocument(r"path\to\my_mxd.mxd") for lyr in arcpy.mapping.ListLayers(mxd): if lyr.supports("LABELCLASSES"): for lblClass in lyr.labelClasses: print "Layer name: " + lyr.name print " Expression: " + lblClass.expression del mxd
lblClass.expression doesn't access the labels needed. Is there another property I can access? Can't see a suitable one in ArcPy classes