<?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: Selecting Input Data Layers using Iteration Variables... in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612061#M20299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for checking this one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After much poking around in ArcCatalog I found how to make ArcMap aware of ASC files, as always it was a small checkbox in an out of the way part of options that I had to tick. This seems to affect all of ArcMap and the GeoProcessing tools so I can now at least see the file! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So lets start with the obvious, %n% starts at zero, is your first asc file sample0.asc?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2011 19:35:28 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2011-06-16T19:35:28Z</dc:date>
    <item>
      <title>Selecting Input Data Layers using Iteration Variables...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612056#M20294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've created a simple model that takes an ascii file, of xyz data, and spatial joins it with a vector lattice gid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem that I run into is that I am unable to select my input ascii files or input polygon features (for the spatial join) using iteration variables.&amp;nbsp; The iteration style that I'm using is count and I assumed that I could select files by using %n% (for example, K:\Sensitivity_Analysis_Indentification\sample1.asc would be K:\Sensitivity_Analysis_Indentification\sample%n%.asc).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could use "A Series of Values" but I have over 1300 records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using 9.3.1 and to be honest I'm not sure if this kind of functionality is even possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or assistance would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Model graphic attached.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 15:52:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612056#M20294</guid>
      <dc:creator>DanBihari</dc:creator>
      <dc:date>2011-06-14T15:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Input Data Layers using Iteration Variables...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612057#M20295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why your model is failing (and I don't think it is to do with the %n%) is that the Make XY Event tool does not take asc files as input. For example sample1.asc won't work but sample1.txt will! I think it's a simple matter of changing the file extension. This is assuming your text files are comma separated and the first row is the header so something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ID,X,Y,Z&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1,10,10,-9999&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2,20,23,-9999&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3,11,33,12.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 14:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612057#M20295</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2011-06-15T14:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Input Data Layers using Iteration Variables...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612058#M20296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for you comments Duncan.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first thing I did when creating this model was to make sure that it ran properly without any iteration.&amp;nbsp; Once I was satisfied, then I introduced the iteration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe ArcGIS does consider ASCII to be a text file since the model did work the way I expected it to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using %n% as a selection variable, not only does it not work for selecting text files (.asc or .txt), but it also doesn't work when used to select shapefiles, coverages, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe the problem is still related to %n% and whether or not the count variable can be used to select files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your suggestion Duncan.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 12:56:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612058#M20296</guid>
      <dc:creator>DanBihari</dc:creator>
      <dc:date>2011-06-16T12:56:33Z</dc:date>
    </item>
    <item>
      <title>Can you just test this?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612059#M20297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not have 9.3.1 I have 9.3.&amp;nbsp; Can you confirm as it would be interesting to know that just running the Make XY Event Layer by itself (so not in a model) that you can actually navigate to a file with the file extension .asc? I can't do this, it does not show, but you can? ESRI must have been doing some tweaking behind the scenes if this is the case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 14:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612059#M20297</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2011-06-16T14:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Input Data Layers using Iteration Variables...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612060#M20298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Duncan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached two screen shots: one that shows mapping xy data from an ASCII file in ArcMap and the other that shows mapping xy data from an ASCII file in ArcToolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to map the xy data using both methods / tools, outside of my model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 15:58:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612060#M20298</guid>
      <dc:creator>DanBihari</dc:creator>
      <dc:date>2011-06-16T15:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Input Data Layers using Iteration Variables...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612061#M20299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for checking this one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After much poking around in ArcCatalog I found how to make ArcMap aware of ASC files, as always it was a small checkbox in an out of the way part of options that I had to tick. This seems to affect all of ArcMap and the GeoProcessing tools so I can now at least see the file! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So lets start with the obvious, %n% starts at zero, is your first asc file sample0.asc?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 19:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612061#M20299</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2011-06-16T19:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Input Data Layers using Iteration Variables...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612062#M20300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Duncan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lets finish with the obvious.&amp;nbsp; As embarassed as I am to admit it, my first file started with a "1" not "0".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works great now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the outside chance that my computer has a stroke or my network goes down, I need to figure out how I can restart my model after 0 (just in case).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help Duncan.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 10:17:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/selecting-input-data-layers-using-iteration/m-p/612062#M20300</guid>
      <dc:creator>DanBihari</dc:creator>
      <dc:date>2011-06-22T10:17:06Z</dc:date>
    </item>
  </channel>
</rss>

