I ran a script that I got from exporting a model that I built in Model Builder in ArcCatalog 10.3.1 and made edits to it (using the generous help from people on here). I essentially put in for my buffer, feature class to feature class, and spatial join processes to print if they already exist and then the code to delete them.
After running the script, I received this text in blue (I didn't play around with the color defaults on Python IDLE):
F:\Projects\Working\ModelProject\ModelData.gdb\Hurricanes_in_Counties_Feature_Class already exists!!
F:\Projects\Working\ModelProject\ModelData.gdb\Hurricanes_Buffer already exists!!
F:\Projects\Working\ModelProject\ModelData.gdb\Hurricanes_Counties_SpaJoi already exists!!
I was told that I need to put in the output files. My question is how do I even begin with an output file?
Here is my code for the buffer process:
import arcpy
Hurricanes_Buffer = "F:\\Projects\\Working\\ModelProject\\ModelData.gdb\\Hurricanes_Buffer"
if arcpy.Exists(Hurricanes_Buffer):
print "{} already exists!!".format(Hurricanes_Buffer)
arcpy.Delete_management(Hurricanes_Buffer)
arcpy.Buffer_analysis(Hurricanes_in_Counties, Hurricanes_Buffer, v15_Miles, "FULL", "ROUND", "NONE", "", "PLANAR")
{ }
button – Midavalo♦ Sep 11 '16 at 19:25