for shp in shpList: arcpy.Append_management( shp, outputfc )
arcpy.AddSpatialIndex_management( outputfc )
Solved! Go to Solution.
The append tool allows you to input a whole bunch of feature at once into the append routine.
If your variable shpList is a real python list like ["Shape1.shp", "Shape2.shp", ...]
Then just pass the entire list into Append_management instead of doing it one at a time.
Cheers,
Neil
arcpy.CopyFeatures_management( shpList[0], combined_fc ) arcpy.Append_management( shpList[1:], combined_fc )
The append tool allows you to input a whole bunch of feature at once into the append routine.
If your variable shpList is a real python list like ["Shape1.shp", "Shape2.shp", ...]
Then just pass the entire list into Append_management instead of doing it one at a time.
Cheers,
Neil
arcpy.CopyFeatures_management( shpList[0], combined_fc ) arcpy.Append_management( shpList[1:], combined_fc )