jcavery92

Filter List and Create New List from Results

Discussion created by jcavery92 on Aug 18, 2011
Latest reply on Aug 19, 2011 by jcavery92
Hello All,

I'm writing a Python script to copy feature classes from a source gdb to a destination gdb. Once the source feature class is copied, it is renamed to include the suffix "_COPIED".

I have a list that will filter and return those feature classes that have the "_COPIED" suffix using Renamed_FeatureClass = arcpy.ListFeatureClasses("*_COPIED"), but I also want to create something like "Original_FeatureClass = arcpy.ListFeatureClasses("do not have _COPIED in the name")".

I want the two seperate lists for error checking and comparison after the script has run. I know this is probably a simple fix, but for the life of me I can't figure out the syntax.

Any ideas?

Thanks,

Justin

Outcomes