<?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: Problems with Parse Path in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-parse-path/m-p/471338#M15778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello curtvprice,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot for your reply. I could find a workaround using the pythonscript you've sent. Thanks a lot!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wish you a great day!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stefan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2013 05:58:13 GMT</pubDate>
    <dc:creator>StefanPetersen</dc:creator>
    <dc:date>2013-09-03T05:58:13Z</dc:date>
    <item>
      <title>Problems with Parse Path</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-parse-path/m-p/471336#M15776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having trouble with Parse Path. I have created a model, that iterates over multivalues. I need to to drag - drop a lot of different layers, that are stored at a lot of different locations from arcmap into the parameter dialogue of the model. I need the model to parse the name of each shapefile, which works fine, and I need the model to parse the path of each shapefile. I use the Parse Path tool, set the parameters to Path, but I only get empty outputs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I open the ArcToolbox from ArcCatalogue and run the model from there, it works, but I can not browse to hundred of different shapes at lots of different locations and add them step for step to the dialogue box. That will take hours. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I need the convienience to run the model from arcmap, I need to open the layerfile in arcmap and drag drop all contents to the dialogoue box and run the model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would really appreciate some help on that issue, as it's driving me crazy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 15:02:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-parse-path/m-p/471336#M15776</guid>
      <dc:creator>StefanPetersen</dc:creator>
      <dc:date>2013-09-02T15:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Parse Path</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-parse-path/m-p/471337#M15777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;So I need the convienience to run the model from arcmap, I need to open the layerfile in arcmap and drag drop all contents to the dialogoue box and run the model.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't believe this is true -- you should be able to drag a shapefile from ArcMap's Catalog Window - or ArcCatalog, if you have it open - directly on to the ArcMap model tool dialog if the model element type is Feature Layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to provide a layer and get the path, you can use the Calculate Value tool to get it. It requires a small Python script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;getpath(r"%input layer%")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;def getpath(lyr): &amp;nbsp; import arcpy &amp;nbsp; return arcpy.Describe(lyr).catalogPath&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Speaking of convenience: have you considered using the Model Builder iterator tool Iterate Feature Classes? If all your shape files are within a folder tree, you can let an iterator tool go find them instead of you. The iterator can use a wild card to filter your shapefiles by name, for example "box*.shp". (ModelBuilder iterator tools were introduced at 10.0.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps you out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 16:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-parse-path/m-p/471337#M15777</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-09-02T16:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Parse Path</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-parse-path/m-p/471338#M15778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello curtvprice,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot for your reply. I could find a workaround using the pythonscript you've sent. Thanks a lot!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wish you a great day!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stefan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 05:58:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-parse-path/m-p/471338#M15778</guid>
      <dc:creator>StefanPetersen</dc:creator>
      <dc:date>2013-09-03T05:58:13Z</dc:date>
    </item>
  </channel>
</rss>

