<?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: How to input specific area values of multiple new shapefiles (39) into a table to Excel in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-how-to-input-specific-area-values-of/m-p/866803#M1420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With out looking at the data you would need another iterator (which is not permitted in the same model) to capture the names of the shapefiles using in-line variables then use a field calculator to populate a field for the country name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have spend some time working on your issue with my own sample data yet have been unable to successfully utilize model builder with a single iterator. If you do this process over and over I would say the best way is to run your created model then utilize another model that iterated the 39 shapefiles to append a feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my test case I have a folder workspace names States which holds all my states shapefiles. The &lt;STRONG&gt;Iterator&lt;/STRONG&gt; goes through each feature class adds an Area (float) field and calculates the area. Then adds a State_Name (text) field (you could use countries) which the &lt;STRONG&gt;Field Calculator&lt;/STRONG&gt; uses the &lt;STRONG&gt;Iterator's&lt;/STRONG&gt; Name object to use inline variables to take the shapefiles name and insert it into the State_Name field with with &lt;STRONG&gt;Field Calculator&lt;/STRONG&gt;. You could do all of this in your model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;To reiterate, this part of the tool would basically create a new field in each of your 39 country features and put the name of that feature in the field.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model 1:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/431996_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field Calculator&lt;/STRONG&gt; (Insert State Name)&amp;nbsp; for adding shapefile name into new field using the&lt;STRONG&gt; Iterator a&lt;/STRONG&gt;nd in-line variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 j-img-centered jive-image" height="382" src="https://community.esri.com/legacyfs/online/431997_2.png" style="display: block; margin-left: auto; margin-right: auto;" width="538" /&gt;&lt;/P&gt;&lt;P&gt;I created a new feature (State_Schema) as a template with the fields I wanted. I will use the &lt;STRONG&gt;Append&lt;/STRONG&gt; tool to append that blank feature with all the values from all the state shapefiles.&amp;nbsp;In a second model, created because I need an additional &lt;STRONG&gt;Iterator&lt;/STRONG&gt;,&amp;nbsp;I&amp;nbsp; go through that same folder of State shapefiles using an iterator to &lt;STRONG&gt;Append&lt;/STRONG&gt; the State_Schema then used the &lt;STRONG&gt;Table to Excel&lt;/STRONG&gt; tool to export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/431998_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have questions, reach out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2018 14:15:33 GMT</pubDate>
    <dc:creator>JakeSimms1</dc:creator>
    <dc:date>2018-12-19T14:15:33Z</dc:date>
    <item>
      <title>ModelBuilder: How to input specific area values of multiple new shapefiles (39) into a table to Excel</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-how-to-input-specific-area-values-of/m-p/866802#M1419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone! I am new to this community but have found a lot of the answers extremely helpful.&lt;/P&gt;&lt;P&gt;I've created a main model on ArcGIS Desktop with five submodels nested in it. I'm on my final step and hoping this is possible to minimize the manual labor in doing my project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I start off with a bunch of country shapefiles (i.e. India, China, Bangladesh, etc.) and I clip them based on a 0/1 binarization. Then I separate them into two different folders and clip them with another shapefile input. Then, for all the new shapefiles created (I believe there's 39 total), I iterate a process where it creates an Area field and calculates the Area for each&amp;nbsp;by using 'Calculate Geometry'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I would like to put all these tables together for each table, listing specifically:&amp;nbsp;&lt;STRONG&gt;Shapefile Name&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;Area in KM&lt;/STRONG&gt;. Then, the attribute table would ideally look something like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/423898_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;... and so forth. Is this possible to do in ArcGIS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, after there's a separate table for all of the shapefiles and their areas, I would like to export that exact table to Excel. I know that that's probably the easier part, but I'm wondering how I can nicely organize the areas with each shapefile before putting it into Excel, to minimize manual work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there are any solutions. I would love to answer any clarification questions if needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 17:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-how-to-input-specific-area-values-of/m-p/866802#M1419</guid>
      <dc:creator>TiffanyWu2</dc:creator>
      <dc:date>2018-10-08T17:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: How to input specific area values of multiple new shapefiles (39) into a table to Excel</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-how-to-input-specific-area-values-of/m-p/866803#M1420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With out looking at the data you would need another iterator (which is not permitted in the same model) to capture the names of the shapefiles using in-line variables then use a field calculator to populate a field for the country name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have spend some time working on your issue with my own sample data yet have been unable to successfully utilize model builder with a single iterator. If you do this process over and over I would say the best way is to run your created model then utilize another model that iterated the 39 shapefiles to append a feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my test case I have a folder workspace names States which holds all my states shapefiles. The &lt;STRONG&gt;Iterator&lt;/STRONG&gt; goes through each feature class adds an Area (float) field and calculates the area. Then adds a State_Name (text) field (you could use countries) which the &lt;STRONG&gt;Field Calculator&lt;/STRONG&gt; uses the &lt;STRONG&gt;Iterator's&lt;/STRONG&gt; Name object to use inline variables to take the shapefiles name and insert it into the State_Name field with with &lt;STRONG&gt;Field Calculator&lt;/STRONG&gt;. You could do all of this in your model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;To reiterate, this part of the tool would basically create a new field in each of your 39 country features and put the name of that feature in the field.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model 1:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/431996_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field Calculator&lt;/STRONG&gt; (Insert State Name)&amp;nbsp; for adding shapefile name into new field using the&lt;STRONG&gt; Iterator a&lt;/STRONG&gt;nd in-line variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 j-img-centered jive-image" height="382" src="https://community.esri.com/legacyfs/online/431997_2.png" style="display: block; margin-left: auto; margin-right: auto;" width="538" /&gt;&lt;/P&gt;&lt;P&gt;I created a new feature (State_Schema) as a template with the fields I wanted. I will use the &lt;STRONG&gt;Append&lt;/STRONG&gt; tool to append that blank feature with all the values from all the state shapefiles.&amp;nbsp;In a second model, created because I need an additional &lt;STRONG&gt;Iterator&lt;/STRONG&gt;,&amp;nbsp;I&amp;nbsp; go through that same folder of State shapefiles using an iterator to &lt;STRONG&gt;Append&lt;/STRONG&gt; the State_Schema then used the &lt;STRONG&gt;Table to Excel&lt;/STRONG&gt; tool to export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/431998_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have questions, reach out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 14:15:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-how-to-input-specific-area-values-of/m-p/866803#M1420</guid>
      <dc:creator>JakeSimms1</dc:creator>
      <dc:date>2018-12-19T14:15:33Z</dc:date>
    </item>
  </channel>
</rss>

