<?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 Recalculate Quantile Breakpoints in CalculateField_management loop? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/recalculate-quantile-breakpoints-in-calculatefield/m-p/531181#M41600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a program that iteratively replaces a temp field where I choose a certain symbology (color ramp and quantile color break methodology) with a few other fields from a join. The program works in that it outputs a file with the correct formatting and such, but it doesn't recalculate the quantile breakpoints based on the new fields. Is it possible to have it recalculate this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy
mxd=arcpy.mapping.MapDocument("CURRENT")

#List of names of fields to be mapped
ListOfFieldsToSymbolize = ["beta1","beta2","beta3"]

#Temporary field that layer is currently using in ArcMap
SymbolizedField = "temp"

for Field in ListOfFieldsToSymbolize:

&amp;nbsp;&amp;nbsp;&amp;nbsp; #Replace temporary field with one of the fields to be mapped
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CalculateField_management("HRR_Boundary", SymbolizedField, "!" + Field + "!", "PYTHON")&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToPDF(mxd, Field)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2012 12:59:26 GMT</pubDate>
    <dc:creator>JacobEpstein</dc:creator>
    <dc:date>2012-03-21T12:59:26Z</dc:date>
    <item>
      <title>Recalculate Quantile Breakpoints in CalculateField_management loop?</title>
      <link>https://community.esri.com/t5/python-questions/recalculate-quantile-breakpoints-in-calculatefield/m-p/531181#M41600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a program that iteratively replaces a temp field where I choose a certain symbology (color ramp and quantile color break methodology) with a few other fields from a join. The program works in that it outputs a file with the correct formatting and such, but it doesn't recalculate the quantile breakpoints based on the new fields. Is it possible to have it recalculate this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy
mxd=arcpy.mapping.MapDocument("CURRENT")

#List of names of fields to be mapped
ListOfFieldsToSymbolize = ["beta1","beta2","beta3"]

#Temporary field that layer is currently using in ArcMap
SymbolizedField = "temp"

for Field in ListOfFieldsToSymbolize:

&amp;nbsp;&amp;nbsp;&amp;nbsp; #Replace temporary field with one of the fields to be mapped
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CalculateField_management("HRR_Boundary", SymbolizedField, "!" + Field + "!", "PYTHON")&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToPDF(mxd, Field)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 12:59:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/recalculate-quantile-breakpoints-in-calculatefield/m-p/531181#M41600</guid>
      <dc:creator>JacobEpstein</dc:creator>
      <dc:date>2012-03-21T12:59:26Z</dc:date>
    </item>
  </channel>
</rss>

