<?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 Python receipt in Calculate window in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/python-receipt-in-calculate-window/m-p/495289#M16513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Field calculator window I would check Python and String&lt;/P&gt;&lt;P&gt;"CAMGMT15"&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222;"&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; str&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(!FID&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;!)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(248, 248, 248, 0.6); color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;What if I want to add say FIDs from 1 to 250,000 and I want it to be CAMGMT1500000001, ....&amp;nbsp; ,CAMGMT1500002346 so forth. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(248, 248, 248, 0.6); color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;Eight spaces from CAMGMT15 and f&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(248, 248, 248, 0.6); color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2015 19:02:50 GMT</pubDate>
    <dc:creator>D__SamuelRajasekhar</dc:creator>
    <dc:date>2015-06-08T19:02:50Z</dc:date>
    <item>
      <title>Python receipt in Calculate window</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/python-receipt-in-calculate-window/m-p/495289#M16513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Field calculator window I would check Python and String&lt;/P&gt;&lt;P&gt;"CAMGMT15"&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222;"&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; str&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(!FID&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;!)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(248, 248, 248, 0.6); color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;What if I want to add say FIDs from 1 to 250,000 and I want it to be CAMGMT1500000001, ....&amp;nbsp; ,CAMGMT1500002346 so forth. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(248, 248, 248, 0.6); color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;Eight spaces from CAMGMT15 and f&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(248, 248, 248, 0.6); color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 19:02:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/python-receipt-in-calculate-window/m-p/495289#M16513</guid>
      <dc:creator>D__SamuelRajasekhar</dc:creator>
      <dc:date>2015-06-08T19:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Python receipt in Calculate window</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/python-receipt-in-calculate-window/m-p/495290#M16514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi D,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"CAMGMT" + str(1500000000 + !FID!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 19:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/python-receipt-in-calculate-window/m-p/495290#M16514</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2015-06-08T19:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Python receipt in Calculate window</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/python-receipt-in-calculate-window/m-p/495291#M16515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jake,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer. Awesome, such a short time. I used the below function and it seemed to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"CAMGMT15" + str( !FID!).zfill(6)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trick seems to be zfill. And if I add too many letters in the first string say "CAMMGMTSQ15" and set the zfill value at 8, I am getting error. Obviously the 15 length I set for this field is exceeded.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 19:50:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/python-receipt-in-calculate-window/m-p/495291#M16515</guid>
      <dc:creator>D__SamuelRajasekhar</dc:creator>
      <dc:date>2015-06-08T19:50:24Z</dc:date>
    </item>
  </channel>
</rss>

