<?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 Calculating field with code block in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calculating-field-with-code-block/m-p/1146375#M51798</link>
    <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;Im trying to create a new field which will start with the value 1201 and increment by 1 until the end (82 values).&lt;/P&gt;&lt;P&gt;I have tried to use the code block to make it create such field but couldn't make it..&lt;/P&gt;&lt;P&gt;help please?&amp;nbsp; Tnx&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 08:09:53 GMT</pubDate>
    <dc:creator>OriHarash</dc:creator>
    <dc:date>2022-02-22T08:09:53Z</dc:date>
    <item>
      <title>Calculating field with code block</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculating-field-with-code-block/m-p/1146375#M51798</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;Im trying to create a new field which will start with the value 1201 and increment by 1 until the end (82 values).&lt;/P&gt;&lt;P&gt;I have tried to use the code block to make it create such field but couldn't make it..&lt;/P&gt;&lt;P&gt;help please?&amp;nbsp; Tnx&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 08:09:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculating-field-with-code-block/m-p/1146375#M51798</guid>
      <dc:creator>OriHarash</dc:creator>
      <dc:date>2022-02-22T08:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating field with code block</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculating-field-with-code-block/m-p/1146382#M51801</link>
      <description>&lt;P&gt;You could use &lt;A href="https://docs.python.org/3/library/itertools.html#itertools.count" target="_self"&gt;itertools.count&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;next(counter)&lt;/LI-CODE&gt;&lt;P&gt;Code block:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;import itertools
counter = itertools.count(start=1201)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 08:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculating-field-with-code-block/m-p/1146382#M51801</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2022-02-22T08:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating field with code block</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculating-field-with-code-block/m-p/1146385#M51802</link>
      <description>&lt;P&gt;Please create new field with "Double"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;raka()&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code Block&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;rec=0&lt;BR /&gt;def raka():&lt;BR /&gt;global rec&lt;BR /&gt;pStart = 1201&lt;BR /&gt;pInterval = 1&lt;BR /&gt;if (rec == 0):&lt;BR /&gt;rec = pStart&lt;BR /&gt;else:&lt;BR /&gt;rec += pInterval&lt;BR /&gt;return rec&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 09:09:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculating-field-with-code-block/m-p/1146385#M51802</guid>
      <dc:creator>Rakesh_Kumar_GIS</dc:creator>
      <dc:date>2022-02-22T09:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating field with code block</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculating-field-with-code-block/m-p/1146388#M51803</link>
      <description>&lt;P&gt;cheers!&lt;/P&gt;&lt;P&gt;short and elegant. Do you&amp;nbsp; recommend to study the itertools ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 09:17:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculating-field-with-code-block/m-p/1146388#M51803</guid>
      <dc:creator>OriHarash</dc:creator>
      <dc:date>2022-02-22T09:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating field with code block</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculating-field-with-code-block/m-p/1146389#M51804</link>
      <description>&lt;P&gt;tnx man.. worked!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 09:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculating-field-with-code-block/m-p/1146389#M51804</guid>
      <dc:creator>OriHarash</dc:creator>
      <dc:date>2022-02-22T09:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating field with code block</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculating-field-with-code-block/m-p/1146390#M51805</link>
      <description>&lt;P&gt;!!!!!!!!!!!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 09:24:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculating-field-with-code-block/m-p/1146390#M51805</guid>
      <dc:creator>Rakesh_Kumar_GIS</dc:creator>
      <dc:date>2022-02-22T09:24:37Z</dc:date>
    </item>
  </channel>
</rss>

