<?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: Alter model to iterate through rows in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766305#M2652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amazing! It worked perfectly and saved tons of time. I ran it for one county's worth of block groups and got the same results as my model. So fast. Perfect. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Mar 2017 20:29:49 GMT</pubDate>
    <dc:creator>MichaelLenore1</dc:creator>
    <dc:date>2017-03-10T20:29:49Z</dc:date>
    <item>
      <title>Alter model to iterate through rows</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766298#M2645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a model that iterates through feature classes, does a calculation, and puts out feature classes. I now need to run it on a GDB containing over 15000 fcs, which is time-consuming and cumbersome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if anyone can help me alter the model so that, instead of iterating through a GDB, it will iterate through the rows in a single shapefile, do the same calculation, and put out a single shapefile with a new field containing the calculation result (or fill in an existing blank field).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the toolbox here. The inputs will be changed: they will be a shapefile containing all New York State block groups, and a shapefile containing all New York State tax parcels. The model calculates the percentage of each block group that is residential, based on a field in the tax parcel shapefile called "GOSR_CAT".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect I need to use a different iterator (row selection?) but have no experience doing that. I don't know how to select a row, run the calculation, and fill in a field, all in the same shapefile.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 18:27:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766298#M2645</guid>
      <dc:creator>MichaelLenore1</dc:creator>
      <dc:date>2017-03-08T18:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alter model to iterate through rows</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766299#M2646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a very nice example in the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/modelbuilder-toolbox/examples-of-using-iterators-in-modelbuilder.htm#ESRI_SECTION1_6DAC76648FEB466388AD883E141D3960" title="http://desktop.arcgis.com/en/arcmap/latest/tools/modelbuilder-toolbox/examples-of-using-iterators-in-modelbuilder.htm#ESRI_SECTION1_6DAC76648FEB466388AD883E141D3960"&gt;Examples of using iterators in ModelBuilder—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most tools (including Calculate Field) process only the selected rows in a feature layer. (Iterate Row Selection outputs a layer [on each iteration] with the records selected, ready to work with.) You can't iterate through two shapefiles at once, so maybe you want to copy your row to a temp table (with Copy Rows) and use Get Field Value to get the field ID you would use to query the other shapefile on each iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would work on a small subset copy of your data-- this&amp;nbsp;kind of thing can be pretty dangerous and you want to get it right before you let it rip on a big dataset. Even when you are running the whole thing, be sure you have a backup!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a good reason to do these one by one? I would think running a single massive Identity operation (or a few tiled operations not so large) would give you a table you could then process to get your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 18:36:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766299#M2646</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-03-08T18:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Alter model to iterate through rows</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766300#M2647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have any reason to do them one by one!&amp;nbsp;I don't quite get your drift re: "identity operation" but would welcome suggestions to get this result.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 19:51:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766300#M2647</guid>
      <dc:creator>MichaelLenore1</dc:creator>
      <dc:date>2017-03-08T19:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Alter model to iterate through rows</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766301#M2648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using Clip, try the Intersect (or Identity) tool on all your block groups (in a single feature class) with all your tax parcels (in another feature class). There are thousands of these so may want to subset one county to get it working the way you want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/analysis-toolbox/an-overview-of-the-overlay-toolset.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/analysis-toolbox/an-overview-of-the-overlay-toolset.htm"&gt;An overview of the Overlay toolset—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 20:02:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766301#M2648</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-03-08T20:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alter model to iterate through rows</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766302#M2649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out this blog post and toolbox&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://blogs.esri.com/esri/arcgis/2012/10/12/comparingoverlaytools/" title="https://blogs.esri.com/esri/arcgis/2012/10/12/comparingoverlaytools/"&gt;More adventures in overlay: comparing commonly used overlay tools | ArcGIS Blog&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.arcgis.com/home/item.html?id=3514cd9a11774444bc4bbba242498967" title="http://www.arcgis.com/home/item.html?id=3514cd9a11774444bc4bbba242498967"&gt;http://www.arcgis.com/home/item.html?id=3514cd9a11774444bc4bbba242498967&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 20:18:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766302#M2649</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-03-08T20:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Alter model to iterate through rows</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766303#M2650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I see. Unfortunately I have to clip the tax parcels with the block groups, in order to avoid capturing area that's not in the block group.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 21:06:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766303#M2650</guid>
      <dc:creator>MichaelLenore1</dc:creator>
      <dc:date>2017-03-08T21:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alter model to iterate through rows</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766304#M2651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Intersect and Identity do the clip you want to do, and bring the attributes along so you can do your tabulations. Try it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 16:56:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766304#M2651</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-03-09T16:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Alter model to iterate through rows</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766305#M2652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amazing! It worked perfectly and saved tons of time. I ran it for one county's worth of block groups and got the same results as my model. So fast. Perfect. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 20:29:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/alter-model-to-iterate-through-rows/m-p/766305#M2652</guid>
      <dc:creator>MichaelLenore1</dc:creator>
      <dc:date>2017-03-10T20:29:49Z</dc:date>
    </item>
  </channel>
</rss>

