Select to view content in your preferred language

Create Label Classes from symbology using arcpy and Python?

100
2
Tuesday
magdatopa_ratp
Occasional Contributor

Hi everyone,

In ArcGIS Pro, I am able to create easily Label Classes from symbology.

But I don't know how to do it in my Python script?

I want my labels to be the same color as the Unique Values symbology I chose for my layer.

Any ideas?

 

Thanks

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

Are you looking for access to LabelClass in arcpy?

LabelClass—ArcGIS Pro | Documentation

and/or the UniqueValuesRender?

UniqueValueRenderer—ArcGIS Pro | Documentation

limited examples exist in those topics.


... sort of retired...
0 Kudos
magdatopa_ratp
Occasional Contributor

Hi,

I simply want to replicate in my Python code the 'Create label classes from symbology' option available in ArcGIS Pro.

The goal is for the labels generated for the features to have the same color as the features themselves. The features use a Unique Value symbology.

 

Thanks for the links, I'll check if the answer to my question is somewhere in there.

0 Kudos