I have created a simple model to transfer multiple feature classes to a shapefile. With the model I exported a .py script which I'd like to run with my task manager to update any changes each day. The script that runs with out overwriting:
# Import arcpy module import arcpy # Local variables: adverse = "F:\\Atco_gis\\temp_shapefiles\\LP_Layers_Temp.gdb\\adverse" comments = "F:\\Atco_gis\\temp_shapefiles\\LP_Layers_Temp.gdb\\comments" desig_crossing = "F:\\Atco_gis\\temp_shapefiles\\LP_Layers_Temp.gdb\\desig_crossing" Temp_LP_Layers = "F:\\Atco_gis\\temp_shapefiles\\Temp_LP_Layers" Temp_LP_Layers__2_ = Temp_LP_Layers # Process: Feature Class To Shapefile (multiple) arcpy.FeatureClassToShapefile_conversion("F:\\Atco_gis\\temp_shapefiles\\LP_Layers_Temp.gdb\\adverse;F:\\Atco_gis\\temp_shapefiles\\LP_Layers_Temp.gdb\\comments;F:\\Atco_gis\\temp_shapefiles\\LP_Layers_Temp.gdb\\desig_crossing", Temp_LP_Layers)
I have been reading that:
arcpy.env.overwriteOutput = True
should solve the problem however it leaves me with a new output with _1 or _2 depending how many times the script has been ran.