AnsweredAssumed Answered

Export features to new shapefile

Question asked by Xhosa on Jan 23, 2013
Latest reply on Jan 23, 2013 by Xhosa
I am trying to write a small script to export each feature in a featureclass to a new shapefile. When I run it, all I see is red (errors). Any help would be greatly appreciated.

import arcpy from arcpy import analysis, env   fc = arcpy.GetParameterAsText(0) field = arcpy.GetParameterAsText(1) env.workspace = arcpy.GetParameterAsText(2)   with arcpy.da.SearchCursor(fc, (field,)) as cursor:     for row in cursor:         arcpy.MakeFeatureLayer_management(field)

Outcomes