Select to view content in your preferred language

Is it possible to deactivate the legendItem's Headings with arcpy in ArcGIS Pro?

613
2
Jump to solution
02-21-2023 07:08 AM
CordulaGöke
Frequent Contributor

I am automating Map production and need to format the legend for the new layers that I add. In ArcMap it seemed possible. But from the documentation in https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/legenditem-class.htm , it looks like there is no option to choose if to show layer name or headings?

0 Kudos
1 Solution

Accepted Solutions
CordulaGöke
Frequent Contributor

I found it, you have to work with CIM objects and the solution is included in the script Legend_LegendItemsAndPatch.py in the CIM samples on https://www.arcgis.com/home/item.html?id=8772f61319584882bb697ba003030636

View solution in original post

2 Replies
CordulaGöke
Frequent Contributor

An  additional question would be, how I change the label for the Headings if I e.g. use graduated colors for vector data with arcpy?

0 Kudos
CordulaGöke
Frequent Contributor

I found it, you have to work with CIM objects and the solution is included in the script Legend_LegendItemsAndPatch.py in the CIM samples on https://www.arcgis.com/home/item.html?id=8772f61319584882bb697ba003030636