Hello,
I'm trying to create a UniqueValueRendererDefinition that uses the OBJECTID as a value. However, Pro does not give this option by default, and it also does not work in the SDK if I give OBJECTID as the value field (It uses some other field instead). In Pro, I would solve this by going into symbology and setting the field to an expression and selecting OBJECTID:
How could I do this using the SDK? My hunch is it will be something relating to the CIM, but I can't find any resources for this online.
Thanks!
Solved! Go to Solution.
Hi,
You are talking about CIMLabelClass Expression method. Link contains samples.
I would recommend using CIM viewer for questions related to layer symbology. Change something in ArcGIS Pro layer symbology and find changed part in CIM objects tree of CIM Viewer. Download CIM Viewer code from here. Video about CIM Viewer here.
Hi,
You are talking about CIMLabelClass Expression method. Link contains samples.
I would recommend using CIM viewer for questions related to layer symbology. Change something in ArcGIS Pro layer symbology and find changed part in CIM objects tree of CIM Viewer. Download CIM Viewer code from here. Video about CIM Viewer here.