<?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: Python Code to create FacilityID based on ObjectID in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/python-code-to-create-facilityid-based-on-objectid/m-p/1183730#M56274</link>
    <description>&lt;LI-CODE lang="python"&gt;"Bcn-{0:0&amp;gt;5}".format(1)
'Bcn-00001'

"Bcn-{0:0&amp;gt;5}".format(100)
'Bcn-00100'&lt;/LI-CODE&gt;&lt;P&gt;plus other variants&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 20:26:00 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-06-16T20:26:00Z</dc:date>
    <item>
      <title>Python Code to create FacilityID based on ObjectID</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-code-to-create-facilityid-based-on-objectid/m-p/1183723#M56273</link>
      <description>&lt;P&gt;I'm a beginning Python user.&lt;/P&gt;&lt;P&gt;Using ArcGIS Pro 2.9.2, I'd like to use python code in the field calculator to generate unique IDs based on the Object ID field. The unique ID should be 3 letters followed by a dash, followed by five digits. It should be a string. For example:&lt;/P&gt;&lt;P&gt;Object ID 1 should generate 'Bcn-00001'&lt;BR /&gt;Object ID 10 should generate 'Bcn-00010'&lt;/P&gt;&lt;P&gt;I was thinking something like:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;FacID = .str('Bcn-000+!OBJECTID!')&lt;/LI-CODE&gt;&lt;P&gt;I don't know how to make the number of zeros in front of the Object ID vary based on the number of digits in the Object ID&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 19:51:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-code-to-create-facilityid-based-on-objectid/m-p/1183723#M56273</guid>
      <dc:creator>MattCotterill</dc:creator>
      <dc:date>2022-06-16T19:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code to create FacilityID based on ObjectID</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-code-to-create-facilityid-based-on-objectid/m-p/1183730#M56274</link>
      <description>&lt;LI-CODE lang="python"&gt;"Bcn-{0:0&amp;gt;5}".format(1)
'Bcn-00001'

"Bcn-{0:0&amp;gt;5}".format(100)
'Bcn-00100'&lt;/LI-CODE&gt;&lt;P&gt;plus other variants&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 20:26:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-code-to-create-facilityid-based-on-objectid/m-p/1183730#M56274</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-06-16T20:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code to create FacilityID based on ObjectID</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-code-to-create-facilityid-based-on-objectid/m-p/1183750#M56278</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 21:07:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-code-to-create-facilityid-based-on-objectid/m-p/1183750#M56278</guid>
      <dc:creator>MattCotterill</dc:creator>
      <dc:date>2022-06-16T21:07:53Z</dc:date>
    </item>
  </channel>
</rss>

