Hello everyone, I have created a label class to display labels for my feature layer.
However, the default label style is not ideal, and I want to customize the font, size, color, and other properties.
I noticed that the LabelClass object does not have a symbol attribute. https://pro.arcgis.com/en/pro-app/3.4/arcpy/mapping/labelclass-class.htm
Could someone advise how I can achieve this using ArcPy (ArcGIS Pro 3.4)? I have searched various platforms but haven’t found a solution.
# Enable layer labels but toggle off all existing label classes
layer.showLabels = True
for lc_old in layer.listLabelClasses():
lc_old.visible = False
# Create a new Label class and toggle it on
lc_new = layer.createLabelClass(name = 'School Name - Python',
expression = '[NAME]',
labelclass_language = 'Python')
lc_new.visible = True