<?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: Attribute Assistant GENERATE_ID and then buffer with zeros? in State &amp; Local Government Questions</title>
    <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-generate-id-and-then-buffer/m-p/56280#M355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried that.&amp;nbsp; It only works up to a point and isn't as clean as I'd like it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Dec 2019 22:12:04 GMT</pubDate>
    <dc:creator>JonBrandt</dc:creator>
    <dc:date>2019-12-05T22:12:04Z</dc:date>
    <item>
      <title>Attribute Assistant GENERATE_ID and then buffer with zeros?</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-generate-id-and-then-buffer/m-p/56278#M353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a command to force my Unique ID to buffer it with zeros?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how to set it up in attribute assistant:&amp;nbsp;&amp;nbsp;MANHOLE|0|SSMH[seq]&amp;nbsp; I've taken this and added&amp;nbsp;MANHOLE|0|SSMH[seq].zfill(7)&amp;nbsp; &amp;nbsp;This of course doesn't work, so what is the method for attribute assistant, do I use an arcade function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI: In field calculator using python I can run the .zfill() on my text Unique ID field and then I'm able to sort numerically but I need that automated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately I want my unique ID to look like this:&amp;nbsp; SSMH0015231&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 19:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-generate-id-and-then-buffer/m-p/56278#M353</guid>
      <dc:creator>JonBrandt</dc:creator>
      <dc:date>2019-12-05T19:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant GENERATE_ID and then buffer with zeros?</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-generate-id-and-then-buffer/m-p/56279#M354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attribute Assistant functions are visual basic so python and arcade aren't going to help you, at least within AA itself.&amp;nbsp; You might take a look at a python calculate or replace function after the fact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edited to ad:&amp;nbsp; after a few moments of thought....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would this work?&amp;nbsp;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;MANHOLE|0|SSMH00[seq]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Just putting the 00 in between&amp;nbsp; SSMH and your [seq]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 20:12:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-generate-id-and-then-buffer/m-p/56279#M354</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-12-05T20:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant GENERATE_ID and then buffer with zeros?</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-generate-id-and-then-buffer/m-p/56280#M355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried that.&amp;nbsp; It only works up to a point and isn't as clean as I'd like it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 22:12:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-generate-id-and-then-buffer/m-p/56280#M355</guid>
      <dc:creator>JonBrandt</dc:creator>
      <dc:date>2019-12-05T22:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant GENERATE_ID and then buffer with zeros?</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-generate-id-and-then-buffer/m-p/56281#M356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 22:54:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-generate-id-and-then-buffer/m-p/56281#M356</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-12-05T22:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant GENERATE_ID and then buffer with zeros?</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-generate-id-and-then-buffer/m-p/56282#M357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does every value need to have the extra padding or just values which are shorter than the full length you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, would you want&amp;nbsp; &amp;nbsp;"0011"&amp;nbsp; and "0111" or would you want these to be "0011" and "00111"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the former, you can change the width of the integer generated so your expression would look like this "&lt;SPAN style="background-color: #ffffff;"&gt;MANHOLE|4|SSMH[seq]". That should ensure the sequence is 4 digits and will pad with leading zeros&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Andy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2019 18:17:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-generate-id-and-then-buffer/m-p/56282#M357</guid>
      <dc:creator>AndyShoemaker</dc:creator>
      <dc:date>2019-12-06T18:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant GENERATE_ID and then buffer with zeros?</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-generate-id-and-then-buffer/m-p/56283#M358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jon,&lt;/P&gt;&lt;P&gt;I am not sure if you have found a solution to this issue or moved on but here is how I do this. The one difference is I am using this against an existing field so you would have to play around with trying to get it to work with your sequence name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"WMMH"&amp;amp;string(4-Len([gisid]),"0")&amp;amp;[gisid]&lt;/P&gt;&lt;P&gt;This returns WMMH0001&lt;/P&gt;&lt;P&gt;[gisid] is the field I am padding to create my new field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2020 15:22:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-generate-id-and-then-buffer/m-p/56283#M358</guid>
      <dc:creator>JoshVigness</dc:creator>
      <dc:date>2020-04-23T15:22:46Z</dc:date>
    </item>
  </channel>
</rss>

