AnsweredAssumed Answered

How to obtain symbology information by feature?

Question asked by eric.eagle on Aug 19, 2020
Latest reply on Aug 19, 2020 by eric.eagle

Assume I have a point layer called "pointlayer" loaded in my active map (ArcGIS Pro).  I set its symbology to a single symbol/color for all points.

 

I can discover symbology properties by layer easily using Python:

 

p = arcpy.mp.ArcGISProject('CURRENT')
m = p.activeMap
l = m.listLayers('pointlayer')[0]

sym = l.symbology
print(sym.renderer.symbol.color)

## Result: {'RGB': [76, 230, 0, 100]}

 

Plain sailing.  However, how would I discover symbol properties per feature?  The documentation examples have only to do with updating a layer's symbology.  However, I'd like to use Python to report RGBA values for each feature in a layer, once a user has already styled it with ArcGIS Pro.

Outcomes