<?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: Excluding features from a feature list in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/excluding-features-from-a-feature-list/m-p/184665#M14231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using the wildcard parameter in list features will select only the feature classes like *vw* what I wanted to do was list features except *vw* or exclude from the list once it is created feature classes like *vw*.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2012 12:00:06 GMT</pubDate>
    <dc:creator>MichaelBarker</dc:creator>
    <dc:date>2012-02-10T12:00:06Z</dc:date>
    <item>
      <title>Excluding features from a feature list</title>
      <link>https://community.esri.com/t5/python-questions/excluding-features-from-a-feature-list/m-p/184663#M14229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've written a script that will create a list of all the feature classes in a geodatabase then have it run an analyze on each, writing out the result to a log file so I know what's been done.&amp;nbsp; Problem I am having is I would like to not have analyze work on sde views, as it causes the script to fail.&amp;nbsp; The views always have VW within the name e.g. WA_Her_Svy_vw_Test so they can be isolated from the rest.&amp;nbsp; Main part of the code below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance, Mike. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;features = arcpy.ListFeatureClasses()
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in features:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Analyze_management(fc, "BUSINESS")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; now = datetime.datetime.now()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; analyzeLog.write(fc + " Analyzed at: " + now.strftime("%H:%M:%S") + '\n')&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 06:22:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/excluding-features-from-a-feature-list/m-p/184663#M14229</guid>
      <dc:creator>MichaelBarker</dc:creator>
      <dc:date>2012-02-10T06:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding features from a feature list</title>
      <link>https://community.esri.com/t5/python-questions/excluding-features-from-a-feature-list/m-p/184664#M14230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ListFeatureClasses() has optional parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v0000001n000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v0000001n000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you can add "*_vw_*" as a wild_card or specify geometry type.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 10:30:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/excluding-features-from-a-feature-list/m-p/184664#M14230</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-02-10T10:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding features from a feature list</title>
      <link>https://community.esri.com/t5/python-questions/excluding-features-from-a-feature-list/m-p/184665#M14231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using the wildcard parameter in list features will select only the feature classes like *vw* what I wanted to do was list features except *vw* or exclude from the list once it is created feature classes like *vw*.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 12:00:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/excluding-features-from-a-feature-list/m-p/184665#M14231</guid>
      <dc:creator>MichaelBarker</dc:creator>
      <dc:date>2012-02-10T12:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding features from a feature list</title>
      <link>https://community.esri.com/t5/python-questions/excluding-features-from-a-feature-list/m-p/184666#M14232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Michael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could append all feature classes to a list, and then analyze all feature classes that do not contain 'vw'.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;list = []
lstFCs = arcpy.ListFeatureClasses()
for fc in lstFCs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; list.append(fc)

for n in list:
&amp;nbsp;&amp;nbsp;&amp;nbsp; if "vw" not in n:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Analyze_management(n, "BUSINESS")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; now = datetime.datetime.now()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; analyzeLog.write(n + " Analyzed at: " + now.strftime("%H:%M:%S") + '\n')&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:22:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/excluding-features-from-a-feature-list/m-p/184666#M14232</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T09:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding features from a feature list</title>
      <link>https://community.esri.com/t5/python-questions/excluding-features-from-a-feature-list/m-p/184667#M14233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks that worked perfectly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 00:09:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/excluding-features-from-a-feature-list/m-p/184667#M14233</guid>
      <dc:creator>MichaelBarker</dc:creator>
      <dc:date>2012-02-13T00:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding features from a feature list</title>
      <link>https://community.esri.com/t5/python-questions/excluding-features-from-a-feature-list/m-p/1638909#M74570</link>
      <description>&lt;P&gt;I am wondering how to exclude a feature type. I know I can specify a feature type by setting&amp;nbsp;feature_type parameter, but how can I exclude a feature type? I tried using != and it didn't work.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 18:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/excluding-features-from-a-feature-list/m-p/1638909#M74570</guid>
      <dc:creator>Boyang_Wang</dc:creator>
      <dc:date>2025-08-04T18:24:39Z</dc:date>
    </item>
  </channel>
</rss>

