I am writing script to take shape files from a folder to Buffer it to given distance to Output folder with same name as input files. Here are block of codes.
# Name: Buffer_multiple file.py # Usage : inFolder to outfolder Buffer analysis # import system modules import arcpy from arcpy import env # Set environment settings arcpy.env.workspace= arcpy.GetParameterAsText(0) arcpy.env.overwriteOutput = True newFC = arcpy.ListFeatureClasses() # get buffer size buffer = arcpy.GetParameterAsText(1) # get output feature class outputFeatureClass = arcpy.GetParameterAsText(2) for fc in newFC: arcpy.Buffer_analysis(fc, outputFeatureClass+fc, buffer)
It shows succeeded with No Output shapefile.
Executing: Script C:\Users\user1\Desktop\Input 20 C:\Users\user1\Desktop\buffered
Start Time: Sun May 17 12:39:12 2015
Running script Script...
Completed script Script...
Succeeded at Sun May 17 12:39:14 2015 (Elapsed Time: 2.00 seconds)