Skip to main content
added 47 characters in body
Source Link
radouxju
  • 49.9k
  • 2
  • 71
  • 144

you can use the select tool with python. It's easier if you first copy the joined attributes to your feature class table, but not necessary.

here is a python snippet (assuming you work with a shapefile)

for year in range(2000,2015):
     arcpy.Select_analysis(fc, fc[:-4]+str(year)+".shp", """ "Start" = """ + str(year) )

this query is designed for a numeric field. For text field you should put it between ' 's

""" "Start" = '{}' """.format(year)

you can use the select tool with python. It's easier if you first copy the joined attributes to your feature class table, but not necessary.

here is a python snippet (assuming you work with a shapefile)

for year in range(2000,2015):
     arcpy.Select_analysis(fc, fc[:-4]+str(year)+".shp", """ "Start" = """ + str(year) )

this query is designed for a numeric field. For text field you should put it between ' 's

you can use the select tool with python. It's easier if you first copy the joined attributes to your feature class table, but not necessary.

here is a python snippet (assuming you work with a shapefile)

for year in range(2000,2015):
     arcpy.Select_analysis(fc, fc[:-4]+str(year)+".shp", """ "Start" = """ + str(year) )

this query is designed for a numeric field. For text field you should put it between ' 's

""" "Start" = '{}' """.format(year)
added 92 characters in body
Source Link
radouxju
  • 49.9k
  • 2
  • 71
  • 144

you can use the select tool with python. It's easier if you first copy the joined attributes to your feature class table, but not necessary.

here is a python snippet (assuming you work with a shapefile)

for year in range(2000,2015):
     arcpy.Select_analysis(fc, fc[:-4]+str(year)+".shp", """ "Start" = """ + str(year) )

this query is designed for a numeric field. For text field you should put it between ' 's

you can use the select tool with python. It's easier if you first copy the joined attributes to your feature class table, but not necessary.

here is a python snippet (assuming you work with a shapefile)

for year in range(2000,2015):
     arcpy.Select_analysis(fc, fc[:-4]+str(year)+".shp", """ "Start" = """ + str(year) )

you can use the select tool with python. It's easier if you first copy the joined attributes to your feature class table, but not necessary.

here is a python snippet (assuming you work with a shapefile)

for year in range(2000,2015):
     arcpy.Select_analysis(fc, fc[:-4]+str(year)+".shp", """ "Start" = """ + str(year) )

this query is designed for a numeric field. For text field you should put it between ' 's

Source Link
radouxju
  • 49.9k
  • 2
  • 71
  • 144

you can use the select tool with python. It's easier if you first copy the joined attributes to your feature class table, but not necessary.

here is a python snippet (assuming you work with a shapefile)

for year in range(2000,2015):
     arcpy.Select_analysis(fc, fc[:-4]+str(year)+".shp", """ "Start" = """ + str(year) )