I have some ArcMap addin that creates new layer and add it into table of content. I need to set up labels for that layer.
I have made some script for labeling layer:
mxd = arcpy.mapping.MapDocument("CURRENT")
data_frame = mxd.activeDataFrame
layer_divide = arcpy.mapping.ListLayers(mxd, "layer", data_frame)[0]
if layer_divide.supports("LABELCLASSES"):
for lblclass in layer_divide.labelClasses:
lblclass.expression = "[OBJECTID]"
lblclass.showClassLabels = True
layer_divide.showLabels = True
arcpy.RefreshActiveView()
This add labels, but I don't know how to change font size of that labels.