Hi David, Here is a code that will split the features based on number of rows. i.e., if a shapefile contains 10 rows it will split the shapefile into 10 different shapefiles. I hope this will help: Open the mxd and run the this the python window in ArcGIS. Instead of "sample" put your layer name that appears in the Table of Contents in ArcMap import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd)[0]
lyr = arcpy.mapping.ListLayers(mxd, "sample", df)[0]
fields = ['FID']
with arcpy.da.SearchCursor(lyr, fields) as cursor:
for row in cursor:
expression = " FID = "+str(row[0])+" "
arcpy.SelectLayerByAttribute_management(lyr,"NEW_SELECTION",expression)
arcpy.RefreshActiveView()
#copying the features selected to an output location
arcpy.CopyFeatures_management(lyr, r"C:\out2\\"+str(row[0])+".shp") Thanks -Jones
... View more