Situation:
Need to get the attributes/values of a field <COD> from an Attributes Table of a Feature Class (picture attached - attr_table) using another field <COD_SYMB> (which acts as a key-field) of that same Attributes Table?
In ArcMap, <COD_SYMB> is the field selected in Layer Properties for the "Value Field" in the Symbology by categories (match to symbols in a style: picture attached - layer_prop).
Code values for the symbology are loaded from a Style File created a priori (picture attached - style_file).
In the Style File ---> field/column "Name" contains the same values of those inserted previously in the field <COD_SYMB> so they can match.
In the Layer properties we have then: the field/column "Label" shows the attributes of <COD_SYMB>. And the field/column "Value" contains the color codes ---> <COD_SYMB>.
In terms of style symbolization, need to compute a way (function/method) to replace the Label with <COD_SYMB> values by the field <COD> and its values.... In other words, when values/codes of field <COD_SYMB> are read, a method reads the correspondent values/codes in the field <COD> and returns them as Label field.
Any help?
I'm working on ArcGIS 10.3.
Note:
Is there a way to convert the Symbology by Style into UNIQUE_VALUES to apply this:
UniqueValuesSymbology—Help | ArcGIS for Desktop ---> desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/uniquevaluessymbology-class.htm
?
Message was edited by: Eduardo Abreu-Freire