Codes work in ArcMAP Python window, but error when run as a script
The attached codes work in Arcmap python window when I copied and passed them line by line, but error in line 65 (arcpy.Project_management) and following (when I temporarily delete the Project tool then the error raise in AddField tool ) when I run it as a script. The error information is "
What is wrong with it?
Project requires an input featureclass name and an output featureclass name. 'windfarm' is defined as the def to run, the geodatabase and a workspace. Try a new name like 'windfarm2' but put windfarm2 in quotes, you currently have it as a variable name and arc* is probably getting confused