<?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: Model Builder - using Folder name as output file name in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18926#M669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this helps, first two screenshots are of separate models that I had to build and then insert into the third screenshot/model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data being processed is located on a network drive&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2019 17:07:33 GMT</pubDate>
    <dc:creator>SteffenCornell</dc:creator>
    <dc:date>2019-09-27T17:07:33Z</dc:date>
    <item>
      <title>Model Builder - using Folder name as output file name</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18916#M659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have put together a model that takes all of the shapefiles in a folder and merges them together.&amp;nbsp; I basically need to know how to use the name of the folder in the name of the output merged file.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For instance, let's say that I have a folder with a directory of "G:\GIS\Data\Birds".&amp;nbsp; So the folder "Birds" is my input folder and includes shapefiles of "robins.shp" and "sparrows.shp".&amp;nbsp; I want the output name to be "Birds_merged.shp" or "Input Folder Name &amp;amp; Birds".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried using inline variables but then I get the entire directory for the input folder.&amp;nbsp; Is there a way to access the name property of a folder and use it in the model?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 19:19:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18916#M659</guid>
      <dc:creator>SteffenCornell</dc:creator>
      <dc:date>2012-10-09T19:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - using Folder name as output file name</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18917#M660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you iterating through multiple folders, and then within each folder, iterating through the shapefiles within the folder?&amp;nbsp; So you essentially want to capture the last folder within the directory?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 22:07:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18917#M660</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2012-10-09T22:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - using Folder name as output file name</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18918#M661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am iterating through multiple subfolders yes but the folder name that I want to capture is the one that holds all of the subfolders.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 22:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18918#M661</guid>
      <dc:creator>SteffenCornell</dc:creator>
      <dc:date>2012-10-09T22:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - using Folder name as output file name</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18919#M662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use Calculate Value model-only tool to extract last folder name from path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It can be done using the following expression in this tool:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;"%Value%".split("\\")[-1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where %Value% is a PATH output from Parse Path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's an example of model (which uses preconditions to ensure that folder name variable was calculated before using it):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]18316[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 09:57:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18919#M662</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-10-10T09:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - using Folder name as output file name</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18920#M663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, so that worked somewhat.&amp;nbsp; Only problem is it calculated the value of one folder higher in the hierarchy then I wanted.&amp;nbsp; I switched the Parse Path type to "Name" instead of "Path" and it worked perfectly.&amp;nbsp; Thanks much for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 22:40:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18920#M663</guid>
      <dc:creator>SteffenCornell</dc:creator>
      <dc:date>2012-10-10T22:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - using Folder name as output file name</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18921#M664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steffen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible for you to share your model ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2018 11:10:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18921#M664</guid>
      <dc:creator>Neha-</dc:creator>
      <dc:date>2018-12-17T11:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - using Folder name as output file name</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18922#M665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can sure try.&amp;nbsp; Do you have an email address?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 23:09:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18922#M665</guid>
      <dc:creator>SteffenCornell</dc:creator>
      <dc:date>2018-12-19T23:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - using Folder name as output file name</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18923#M666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steffan for your swift response.&lt;/P&gt;&lt;P&gt;My email id &lt;A href="mailto:nsharma2407@gmail.com"&gt;nsharma2407@gmail.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2018 04:41:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18923#M666</guid>
      <dc:creator>Neha-</dc:creator>
      <dc:date>2018-12-20T04:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - using Folder name as output file name</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18924#M667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steffen. Would it be possible to attach a screenshot of your model?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 16:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18924#M667</guid>
      <dc:creator>RegieAlam</dc:creator>
      <dc:date>2019-09-27T16:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - using Folder name as output file name</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18925#M668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="460684" alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/460684_2.JPG" /&gt;&lt;IMG alt="" class="jive-emoji image-6 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/460700_1.JPG" /&gt;&lt;IMG __jive_id="460697" alt="" class="jive-emoji jive-image image-3 j-img-original" src="https://community.esri.com/legacyfs/online/460697_3.JPG" /&gt;&lt;IMG __jive_id="460698" alt="" class="jive-emoji jive-image image-4 j-img-original" src="https://community.esri.com/legacyfs/online/460698_4.JPG" /&gt;&lt;IMG __jive_id="460699" alt="" class="jive-emoji jive-image image-5 j-img-original" src="https://community.esri.com/legacyfs/online/460699_5.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 16:48:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18925#M668</guid>
      <dc:creator>SteffenCornell</dc:creator>
      <dc:date>2019-09-27T16:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - using Folder name as output file name</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18926#M669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this helps, first two screenshots are of separate models that I had to build and then insert into the third screenshot/model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data being processed is located on a network drive&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 17:07:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-using-folder-name-as-output-file/m-p/18926#M669</guid>
      <dc:creator>SteffenCornell</dc:creator>
      <dc:date>2019-09-27T17:07:33Z</dc:date>
    </item>
  </channel>
</rss>

