Simple Folder to folder batch python script

المشرف العام

Administrator
طاقم الإدارة
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 arcpyfrom arcpy import env# Set environment settingsarcpy.env.workspace= arcpy.GetParameterAsText(0)arcpy.env.overwriteOutput = TruenewFC = arcpy.ListFeatureClasses()# get buffer size buffer = arcpy.GetParameterAsText(1)# get output feature classoutputFeatureClass = 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\bufferedStart Time: Sun May 17 12:39:12 2015Running script Script...Completed script Script...Succeeded at Sun May 17 12:39:14 2015 (Elapsed Time: 2.00 seconds)



أكثر...
 
أعلى