<?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 Iterate Feature Classes: (Multiple Wildcards) in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/iterate-feature-classes-multiple-wildcards/m-p/136625#M4657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have a workaround for me where I can specify multiple wildcards when using "Iterate Feature Classes". I need to search for feature class that have the following tile names within a directory of multiple folder such as 1: 2830* 2: 2831* 3: 2930* and copy the shapfiles (polylines) into a File Geodatabase for futher processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wildcards:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2830*;2831*;2930*&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2013 09:30:45 GMT</pubDate>
    <dc:creator>PeterWilson</dc:creator>
    <dc:date>2013-02-20T09:30:45Z</dc:date>
    <item>
      <title>Iterate Feature Classes: (Multiple Wildcards)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/iterate-feature-classes-multiple-wildcards/m-p/136625#M4657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have a workaround for me where I can specify multiple wildcards when using "Iterate Feature Classes". I need to search for feature class that have the following tile names within a directory of multiple folder such as 1: 2830* 2: 2831* 3: 2930* and copy the shapfiles (polylines) into a File Geodatabase for futher processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wildcards:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2830*;2831*;2930*&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 09:30:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/iterate-feature-classes-multiple-wildcards/m-p/136625#M4657</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2013-02-20T09:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Feature Classes: (Multiple Wildcards)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/iterate-feature-classes-multiple-wildcards/m-p/136626#M4658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;*Bump* I have a need for this also and have not found a solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 13:54:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/iterate-feature-classes-multiple-wildcards/m-p/136626#M4658</guid>
      <dc:creator>deleted-user-FYWnb7WVNuhY</dc:creator>
      <dc:date>2014-05-02T13:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Feature Classes: (Multiple Wildcards)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/iterate-feature-classes-multiple-wildcards/m-p/136627#M4659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does anyone have a workaround for me where I can specify multiple wildcards when using "Iterate Feature Classes". I need to search for feature class that have the following tile names within a directory of multiple folder such as 1: 2830* 2: 2831* 3: 2930* and copy the shapfiles (polylines) into a File Geodatabase for futher processing.&lt;BR /&gt;&lt;BR /&gt;Wildcards:&lt;BR /&gt;&lt;BR /&gt;2830*;2831*;2930*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can create 3 models for each of your cases, and then combine the models into one model.&amp;nbsp; Or you can try using python, which might be easier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your Python code would look like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
destination = arcpy.GetParameterAsText(0)
workspace = arcpy.GetParameterAsText(1)
arcpy.env.workspace = workspace
cases = ['2830', '2831', '2930']
for fc in arcpy.ListFeatureClasses():
&amp;nbsp;&amp;nbsp;&amp;nbsp; for case in cases:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if fc.startswith(case):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'copy the data'
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you want to input your start with text, you could create a multi-value string and then split by ';'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this gets you on track.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/iterate-feature-classes-multiple-wildcards/m-p/136627#M4659</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2021-12-11T07:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Feature Classes: (Multiple Wildcards)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/iterate-feature-classes-multiple-wildcards/m-p/136628#M4660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your code saved me, very nice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2015 07:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/iterate-feature-classes-multiple-wildcards/m-p/136628#M4660</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-05-30T07:49:30Z</dc:date>
    </item>
  </channel>
</rss>

