<?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 How to iterate through attribute table, perform geoprocess, then add data to new table in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/how-to-iterate-through-attribute-table-perform/m-p/1004907#M1630</link>
    <description>&lt;P&gt;I want to iterate through a process and compile a table of new data.&amp;nbsp; Specifically, I want to clip roads to a neighborhood polygon in a city shapefile, calculate the length of the roads in the new clipped shapefile, and output it to a table.&amp;nbsp; I can do this once and I can do it through all of the rows of the to get a total (of all roads in the city) on one line in a table, but I do not know how to iterate through multiple neighborhoods (polygons in a shapefile) and create multiple lines of data in a table (ie the total length of roads in each neighborhood polygon).&lt;/P&gt;&lt;P&gt;To be clear, I want to:&lt;/P&gt;&lt;P&gt;1. clip roads to neighborhood&lt;/P&gt;&lt;P&gt;2. summarize statistics -- SUM&lt;/P&gt;&lt;P&gt;3. add sum to table&lt;/P&gt;&lt;P&gt;4. iterate to next line in feature class&lt;/P&gt;</description>
    <pubDate>Thu, 26 Nov 2020 01:01:36 GMT</pubDate>
    <dc:creator>jegs1993</dc:creator>
    <dc:date>2020-11-26T01:01:36Z</dc:date>
    <item>
      <title>How to iterate through attribute table, perform geoprocess, then add data to new table</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-iterate-through-attribute-table-perform/m-p/1004907#M1630</link>
      <description>&lt;P&gt;I want to iterate through a process and compile a table of new data.&amp;nbsp; Specifically, I want to clip roads to a neighborhood polygon in a city shapefile, calculate the length of the roads in the new clipped shapefile, and output it to a table.&amp;nbsp; I can do this once and I can do it through all of the rows of the to get a total (of all roads in the city) on one line in a table, but I do not know how to iterate through multiple neighborhoods (polygons in a shapefile) and create multiple lines of data in a table (ie the total length of roads in each neighborhood polygon).&lt;/P&gt;&lt;P&gt;To be clear, I want to:&lt;/P&gt;&lt;P&gt;1. clip roads to neighborhood&lt;/P&gt;&lt;P&gt;2. summarize statistics -- SUM&lt;/P&gt;&lt;P&gt;3. add sum to table&lt;/P&gt;&lt;P&gt;4. iterate to next line in feature class&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 01:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-iterate-through-attribute-table-perform/m-p/1004907#M1630</guid>
      <dc:creator>jegs1993</dc:creator>
      <dc:date>2020-11-26T01:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate through attribute table, perform geoprocess, then add data to new table</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-iterate-through-attribute-table-perform/m-p/1004984#M1631</link>
      <description>&lt;P&gt;Have you looked into model builder for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 10:12:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-iterate-through-attribute-table-perform/m-p/1004984#M1631</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-11-26T10:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate through attribute table, perform geoprocess, then add data to new table</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-iterate-through-attribute-table-perform/m-p/1145611#M3463</link>
      <description>&lt;P&gt;I'm trying to create a similar model. I would like to iterate through a table of address points, select all addresses that fall within x distance of that address point, sum the number of dwellings (this is different than the total number of address points as some may be a duplex, triplex etc.) and write this back to the address point that is currently selected in my iteration. My model fails on the calculate tool. I'm not sure if my arcade expression is incorrect or if it's even possible to write to the selected address. My understanding is that the selected address is a&amp;nbsp;&lt;STRONG&gt;view&lt;/STRONG&gt; of the layer and not the layer itself..?&amp;nbsp;(the tool help page states: &lt;EM&gt;Selected Rows is a&lt;/EM&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;table view that can be used in other geoprocessing tools that accept a table view in ModelBuilder)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Here's my arcade expression (the error I receive is &lt;EM&gt;invalid expression Table not found ParcelinBuffer&lt;/EM&gt;&amp;nbsp;which definitely exists in my test.gdb):&lt;/P&gt;&lt;LI-CODE lang="css"&gt;var ParcelinBuffer = FeatureSetByName($datastore,"ParcelinBuffer",["NumRU_RDU_FRU"], True);
Return SUM(ParcelinBuffer.NumRU_RDU_FRU);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 15:04:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-iterate-through-attribute-table-perform/m-p/1145611#M3463</guid>
      <dc:creator>SarahHartholt</dc:creator>
      <dc:date>2022-02-18T15:04:17Z</dc:date>
    </item>
  </channel>
</rss>

