<?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: Open shapefile using parsed filename in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329774#M2100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A general suggestion - maybe try loading all your shapefiles into a File Geodatabase, then work against that.&amp;nbsp; I suggest this as you may be running up against a naming limit having to do with not just the filename but the path.&amp;nbsp; For example, if the combination of the filename and the path gets close to 255 characters, it can bomb out (even though the specs say it should work fine).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;General information on Shapefiles&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/com/Gp_ToolRef/geoprocessing_tool_reference/geoprocessing_considerations_for_shapefile_output.htm" title="http://resources.esri.com/help/9.3/ArcGISDesktop/com/Gp_ToolRef/geoprocessing_tool_reference/geoprocessing_considerations_for_shapefile_output.htm"&gt;Geoprocessing considerations for shapefile output&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2015 22:54:58 GMT</pubDate>
    <dc:creator>ChrisDonohue__GISP</dc:creator>
    <dc:date>2015-07-22T22:54:58Z</dc:date>
    <item>
      <title>ModelBuilder: Open shapefile using parsed filename</title>
      <link>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329766#M2092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to build a model that will iterate through a series of xyz text files, and clip each text file using a similarly named shapefile on a one-to-one basis. So example01.txt has a corresponding polygon shapefile, example01.shp, which will be used to clip it. So I've parsed out the filename, example01, but when I try to use that as the Clip Feature in the Clip tool, the model refuses to start, claiming that %filename%.shp does not exist. What am I missing? Is there a way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already tested a simpler model that will convert the text files to multipoint shapefiles, and that works on its own. But I can't get Arc to recognize that it needs to evaluate the filename variable prior to checking for the existence of the shapefile. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Model.png" class="image-1 jive-image" height="227" src="https://community.esri.com/legacyfs/online/118506_Model.png" style="height: 227px; width: 1066.21212121212px;" width="1066" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error.png" class="image-2 jive-image" height="135" src="https://community.esri.com/legacyfs/online/118507_Error.png" style="height: 135px; width: 845.454545454546px;" width="845" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 19:44:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329766#M2092</guid>
      <dc:creator>GaryHoffmann</dc:creator>
      <dc:date>2015-07-22T19:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: Open shapefile using parsed filename</title>
      <link>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329767#M2093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Full disclosure, I don't use ModelBuilder very often, but this sounds like a job for a &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/a-quick-tour-of-using-precondition.htm"&gt;precondition&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 20:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329767#M2093</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-07-22T20:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: Open shapefile using parsed filename</title>
      <link>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329768#M2094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've already got a precondition between the parsed filename and the ASCII 3D to Feature Class process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: I've also tried making the parsed filename a precondition to the Clip process. Neither worked. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 20:25:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329768#M2094</guid>
      <dc:creator>GaryHoffmann</dc:creator>
      <dc:date>2015-07-22T20:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: Open shapefile using parsed filename</title>
      <link>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329769#M2095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, I think I see. Try using the full path to the shapefile. For example, C:/yourfolder/%FILENAME%.shp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, have you set the workspace environment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 20:45:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329769#M2095</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-07-22T20:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: Open shapefile using parsed filename</title>
      <link>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329770#M2096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, tried that, too. Both using %INPUT_FOLDER% as a variable and just manually entering the path. It's still saying %filename%.shp doesn't exist. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 20:48:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329770#M2096</guid>
      <dc:creator>GaryHoffmann</dc:creator>
      <dc:date>2015-07-22T20:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: Open shapefile using parsed filename</title>
      <link>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329771#M2097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you have the Parse Path tool set up? And, is it the Parse Path tool renamed, or a different tool called Parse Filename? I don't have anything called Parse Filename. What is the exact output value of FILENAME?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 21:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329771#M2097</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-07-22T21:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: Open shapefile using parsed filename</title>
      <link>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329772#M2098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's Parse Path, set to Parse Type = NAME. I renamed it because I was playing around with parsing some paths and such. The exact output value should be, e.g. 840_0810 (UTM easting/northing values that were used to create the filenames). So 840_0810.txt should get turned into 840_0810_XYZ.shp (which works correctly in the simpler model I mentioned), which should then get clipped by 840_0810.shp (a polygon shapefile created prevsiously) to create 840_0810_CLIP.shp. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 21:30:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329772#M2098</guid>
      <dc:creator>GaryHoffmann</dc:creator>
      <dc:date>2015-07-22T21:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: Open shapefile using parsed filename</title>
      <link>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329773#M2099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding a second Parse Path tool to the Name variable, set to Path, and named "PATH". Then, change your Clip tool to look for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%PATH%/%FILENAME%.shp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 21:46:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329773#M2099</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-07-22T21:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: Open shapefile using parsed filename</title>
      <link>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329774#M2100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A general suggestion - maybe try loading all your shapefiles into a File Geodatabase, then work against that.&amp;nbsp; I suggest this as you may be running up against a naming limit having to do with not just the filename but the path.&amp;nbsp; For example, if the combination of the filename and the path gets close to 255 characters, it can bomb out (even though the specs say it should work fine).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;General information on Shapefiles&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/com/Gp_ToolRef/geoprocessing_tool_reference/geoprocessing_considerations_for_shapefile_output.htm" title="http://resources.esri.com/help/9.3/ArcGISDesktop/com/Gp_ToolRef/geoprocessing_tool_reference/geoprocessing_considerations_for_shapefile_output.htm"&gt;Geoprocessing considerations for shapefile output&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 22:54:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329774#M2100</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2015-07-22T22:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: Open shapefile using parsed filename</title>
      <link>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329775#M2101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can try that, but my path names are nowhere near 255 characters long.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 00:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329775#M2101</guid>
      <dc:creator>GaryHoffmann</dc:creator>
      <dc:date>2015-07-23T00:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: Open shapefile using parsed filename</title>
      <link>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329776#M2102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I contacted ESRI Tech Support and they confirmed that variables can't be used as inputs to a process. So you have to use Calculate Value with some python code to generate an intermediary output, which gives you more freedom to parse out particular substrings from a filename, anyway. Working version shown below. Thanks, everyone, for your help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CalculateValue.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/120085_CalculateValue.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="WorkingArcModel.png" class="image-1 jive-image" height="329" src="https://community.esri.com/legacyfs/online/120084_WorkingArcModel.png" style="height: 329px; width: 1368.9932885906px;" width="1369" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 17:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/modelbuilder-open-shapefile-using-parsed-filename/m-p/329776#M2102</guid>
      <dc:creator>GaryHoffmann</dc:creator>
      <dc:date>2015-07-31T17:12:39Z</dc:date>
    </item>
  </channel>
</rss>

