<?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: ModelBuilder - automatic rename attributes in table based on shape area in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/modelbuilder-automatic-rename-attributes-in-table/m-p/1122833#M3258</link>
    <description>&lt;P&gt;The easiest way to do this in ModelBuilder is to use the Sort tool to sort by CODE and Shape_Area and then write a python function in Calculate Field tool with a code block with a function that assigns values according to your rules as you navigate through the sorted table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, take what I bet is&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;'s advice and do this in Python/numpy in a Calculate Value function that reads the table, sorts it and does your logic.&lt;/P&gt;&lt;P&gt;I do not follow your logic here.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Dec 2021 05:37:34 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2021-12-06T05:37:34Z</dc:date>
    <item>
      <title>ModelBuilder - automatic rename attributes in table based on shape area</title>
      <link>https://community.esri.com/t5/arcmap-questions/modelbuilder-automatic-rename-attributes-in-table/m-p/1122805#M3257</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I was wondering if it is possible to rename my polygons based on shape area.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this exact advice from mr. Pike&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcmap-questions/modelbuilder-automatic-rename-attributes-in-table/m-p/1038995#M2157" target="_self"&gt;https://community.esri.com/t5/arcmap-questions/modelbuilder-automatic-rename-attributes-in-table/m-p/1038995#M2157&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but I am thinking if we can rename them like this - when I have polygons with CODE 2000, then CODE 2 would be calculated based on shape area - the biggest would be for CODE2 the same as it was original - in this case 1, smaller would be CODE2 2, the smallest would be CODE3 ... and so on...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From this&lt;/P&gt;&lt;P&gt;FID&amp;nbsp; &amp;nbsp; &amp;nbsp; CODE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CODE2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AREA&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0,5&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0,25&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1,5&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0,75&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To this&lt;/P&gt;&lt;P&gt;FID&amp;nbsp; &amp;nbsp; &amp;nbsp; CODE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CODE2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AREA&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0,5&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0,25&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1,5&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0,75&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 21:13:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/modelbuilder-automatic-rename-attributes-in-table/m-p/1122805#M3257</guid>
      <dc:creator>StanislavaV</dc:creator>
      <dc:date>2021-12-05T21:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder - automatic rename attributes in table based on shape area</title>
      <link>https://community.esri.com/t5/arcmap-questions/modelbuilder-automatic-rename-attributes-in-table/m-p/1122833#M3258</link>
      <description>&lt;P&gt;The easiest way to do this in ModelBuilder is to use the Sort tool to sort by CODE and Shape_Area and then write a python function in Calculate Field tool with a code block with a function that assigns values according to your rules as you navigate through the sorted table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, take what I bet is&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;'s advice and do this in Python/numpy in a Calculate Value function that reads the table, sorts it and does your logic.&lt;/P&gt;&lt;P&gt;I do not follow your logic here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 05:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/modelbuilder-automatic-rename-attributes-in-table/m-p/1122833#M3258</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-06T05:37:34Z</dc:date>
    </item>
  </channel>
</rss>

