<?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: Problem with Sequential Counter in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-sequential-counter/m-p/1088444#M44388</link>
    <description>&lt;P&gt;Are you up for using an update cursor, or do you have to do it within Field Calculator?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Aug 2021 14:49:05 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2021-08-12T14:49:05Z</dc:date>
    <item>
      <title>Problem with Sequential Counter</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-sequential-counter/m-p/1088395#M44381</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the following sequential counter built in to the field calculator using Python 3. Really missing this functionality because it was&amp;nbsp; a simple calculation in ArcMap that would sequentially add a number&lt;STRONG&gt; as&amp;nbsp;the field was sorted within the table&lt;/STRONG&gt;. It appears that the built in function will only do this by the Object ID and ignores any sorting you have applied. Is there anyway to sequentially add a number based upon sorting instead of the underlying data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Calculates a sequential number&lt;BR /&gt;# More calculator examples at esriurl.com/CalculatorExamples&lt;BR /&gt;rec=0&lt;BR /&gt;def SequentialNumber():&lt;BR /&gt;global rec&lt;BR /&gt;pStart = 1&lt;BR /&gt;pInterval = 1&lt;BR /&gt;if (rec == 0):&lt;BR /&gt;rec = pStart&lt;BR /&gt;else:&lt;BR /&gt;rec = rec + pInterval&lt;BR /&gt;return rec&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelKlassen_0-1628776566818.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20714i68005D86361B84CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelKlassen_0-1628776566818.png" alt="MichaelKlassen_0-1628776566818.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 14:00:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-sequential-counter/m-p/1088395#M44381</guid>
      <dc:creator>MichaelKlassen</dc:creator>
      <dc:date>2021-08-12T14:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sequential Counter</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-sequential-counter/m-p/1088444#M44388</link>
      <description>&lt;P&gt;Are you up for using an update cursor, or do you have to do it within Field Calculator?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 14:49:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-sequential-counter/m-p/1088444#M44388</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-08-12T14:49:05Z</dc:date>
    </item>
  </channel>
</rss>

