I am unable to turn on the labels with the python script. I am not sure why! Please do not direct me to another post as i have read them all.
This is the most recent one i've tried, with obvious failure.
import arcpy mxd = arcpy.mapping.MapDocument(r"Mypathhere") #Map document reference layer = arcpy.mapping.ListLayers(mxd, "Layername") #Indexing list for 1st layer if layer.supports("LABELCLASSES"): for lblclass in layer.labelClasses: lblclass.showClassLabels = True arcpy.RefreshActiveView() mxd.save() del mxd
Do i need to enable labeling in the label manager first? Can that be done with arcpy? Thanks for your help!
The script does not break, i don't get any errors, the points just don't get labeled.