I have to project all shapefiles to NAD_1983_UTM_Zone_10N I use Python 2.6
what codes I have used is as follow: import arcpy inFolder = arcpy.GetParameterAsText(0) outC = arcpy.GetParameterAsText(1) arcpy.env.workspace = inFolder fcList = arcpy.ListFeatureClasses() try: desc = arcpy.Describe(outC) spatialRef = desc.SpatialReference for featureClass in fcList: arcpy.Project_management (inFolder, outC) rootName = " " if fc.endswith[".shp]: rootName + fc[:4] arcpy.AddMessage("\n" + "The files " + projectedFeatureClasses[:2] + "have successfully been reprojected" + "\n") except: arcpy.AddMessage ("This project is incomplete") arcpy.AddMessage(arcpy.Getmessage()) Thank you
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor