<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Equivalent for arcpy.mapping.Layer.addAllValues() in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/equivalent-for-arcpy-mapping-layer-addallvalues/m-p/1669084#M74951</link>
    <description>&lt;P&gt;I believe you can just set the layer symbology to UniqueValueRenderer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/uniquevaluerenderer-class.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/uniquevaluerenderer-class.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Nov 2025 20:47:00 GMT</pubDate>
    <dc:creator>HaydenWelch</dc:creator>
    <dc:date>2025-11-27T20:47:00Z</dc:date>
    <item>
      <title>Equivalent for arcpy.mapping.Layer.addAllValues()</title>
      <link>https://community.esri.com/t5/python-questions/equivalent-for-arcpy-mapping-layer-addallvalues/m-p/1668872#M74949</link>
      <description>&lt;P&gt;In ArcGIS Desktop, we had arcpy.mapping.Layer.addAllValues(). I used this for a straightforward workflow to dynamically symbolize a unique values layer and show it in the legend. I only want to show certain values in the legend (those within a certain distance from the feature). The layer has hundreds of unique values. Symbolization color is not incredibly important and was manageable via a custom color ramp.&lt;/P&gt;&lt;P&gt;Workflow:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dynamically build a definition query for which features are in proximity of a feature of interest.&lt;/LI&gt;&lt;LI&gt;Set that definition query on the layer to limit which values would be symbolized (very important on a layer that has hundreds of unique values).&lt;/LI&gt;&lt;LI&gt;Run arcpy.mapping.Layer.addAllValues() on the layer.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Result: Layer and legend would have a symbol class for only those features that meet the definition query.&lt;/P&gt;&lt;P&gt;This was a quick and easy way to get this done. In ArcGIS Pro and arcpy.mp, there does not seem to be an equivalent to arcpy.mapping.Layer.addAllValues() and it looks like cracking into the CIM is going to be necessary and my code is about to get a lot more complicated. Am I missing something?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 18:24:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/equivalent-for-arcpy-mapping-layer-addallvalues/m-p/1668872#M74949</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2025-11-26T18:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Equivalent for arcpy.mapping.Layer.addAllValues()</title>
      <link>https://community.esri.com/t5/python-questions/equivalent-for-arcpy-mapping-layer-addallvalues/m-p/1669084#M74951</link>
      <description>&lt;P&gt;I believe you can just set the layer symbology to UniqueValueRenderer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/uniquevaluerenderer-class.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/uniquevaluerenderer-class.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 20:47:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/equivalent-for-arcpy-mapping-layer-addallvalues/m-p/1669084#M74951</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-11-27T20:47:00Z</dc:date>
    </item>
  </channel>
</rss>

