<?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: Supplying a list of shapefiles to be intersected in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/supplying-a-list-of-shapefiles-to-be-intersected/m-p/1473142#M3994</link>
    <description>&lt;P&gt;Unfortunately, I'm not a python kind of guy so it's modelbuilder for me.&lt;/P&gt;&lt;P&gt;The iterate workspace doesn't seem to work for me so I tried the iterate feature class.&amp;nbsp; The iteration works and I can pass that to the intersect tool, but it doesn't add them as additional datasets to intersect.&amp;nbsp; It iterates through each shapefile and intersects it with itself and results in an empty output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CamKenny2_0-1715801601174.png" style="width: 505px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104206iC84B6231A24D111F/image-dimensions/505x308?v=v2" width="505" height="308" role="button" title="CamKenny2_0-1715801601174.png" alt="CamKenny2_0-1715801601174.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 19:33:30 GMT</pubDate>
    <dc:creator>CamKenny2</dc:creator>
    <dc:date>2024-05-15T19:33:30Z</dc:date>
    <item>
      <title>Supplying a list of shapefiles to be intersected</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/supplying-a-list-of-shapefiles-to-be-intersected/m-p/1468625#M3992</link>
      <description>&lt;P&gt;I have quite a few folders that contain up to 34 shapefiles that I need to supply to the intersect tool.&lt;/P&gt;&lt;P&gt;Is there a way in model builder to get the list of shapefiles in a folder and supply that list to the intersect tool as each folder can various amounts of shapefiles and names.&amp;nbsp; They are all polygons and I can supply the workspace as a parameter, just not sure how to create a list and pass that on to the intersect tool.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 22:27:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/supplying-a-list-of-shapefiles-to-be-intersected/m-p/1468625#M3992</guid>
      <dc:creator>CamKenny2</dc:creator>
      <dc:date>2024-05-14T22:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Supplying a list of shapefiles to be intersected</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/supplying-a-list-of-shapefiles-to-be-intersected/m-p/1472827#M3993</link>
      <description>&lt;P&gt;If you go with Python, you can use List Feature Classes:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/listfeatureclasses.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/listfeatureclasses.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That works for a given workspace (folder, in this case), so you would need to iterate over the folders and run it on each and collect the results.&lt;/P&gt;&lt;P&gt;Here is a tutorial that shows how to use List Feature Classes:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.arcgis.com/en/projects/automate-a-geoprocessing-workflow-with-python/" target="_blank" rel="noopener"&gt;https://learn.arcgis.com/en/projects/automate-a-geoprocessing-workflow-with-python/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you stick to ModelBuilder maybe you can do something with Iterate Workspaces:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/modelbuilder-toolbox/iterate-workspaces.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/modelbuilder-toolbox/iterate-workspaces.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 13:33:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/supplying-a-list-of-shapefiles-to-be-intersected/m-p/1472827#M3993</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2024-05-15T13:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Supplying a list of shapefiles to be intersected</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/supplying-a-list-of-shapefiles-to-be-intersected/m-p/1473142#M3994</link>
      <description>&lt;P&gt;Unfortunately, I'm not a python kind of guy so it's modelbuilder for me.&lt;/P&gt;&lt;P&gt;The iterate workspace doesn't seem to work for me so I tried the iterate feature class.&amp;nbsp; The iteration works and I can pass that to the intersect tool, but it doesn't add them as additional datasets to intersect.&amp;nbsp; It iterates through each shapefile and intersects it with itself and results in an empty output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CamKenny2_0-1715801601174.png" style="width: 505px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104206iC84B6231A24D111F/image-dimensions/505x308?v=v2" width="505" height="308" role="button" title="CamKenny2_0-1715801601174.png" alt="CamKenny2_0-1715801601174.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 19:33:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/supplying-a-list-of-shapefiles-to-be-intersected/m-p/1473142#M3994</guid>
      <dc:creator>CamKenny2</dc:creator>
      <dc:date>2024-05-15T19:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Supplying a list of shapefiles to be intersected</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/supplying-a-list-of-shapefiles-to-be-intersected/m-p/1473849#M3995</link>
      <description>&lt;P&gt;May be able to do it in ModelBuilder with a variable of type Multivalue. You could populate it with a list of feature classes using the Calculate Value model tool and a little bit of Python in the code block. Once populated you could pass it to the Intersect tool as the input feature class list.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 14:24:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/supplying-a-list-of-shapefiles-to-be-intersected/m-p/1473849#M3995</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2024-05-16T14:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Supplying a list of shapefiles to be intersected</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/supplying-a-list-of-shapefiles-to-be-intersected/m-p/1473912#M3996</link>
      <description>&lt;P&gt;I ended up finding a python script that did mostly what I wanted to do and with a little tweaking, managed to get it to work.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 15:11:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/supplying-a-list-of-shapefiles-to-be-intersected/m-p/1473912#M3996</guid>
      <dc:creator>CamKenny2</dc:creator>
      <dc:date>2024-05-16T15:11:46Z</dc:date>
    </item>
  </channel>
</rss>

