I want to create new feature classes based on selections from a list of fields. For now I'm using a user prompt instead of GetParamatersAsText for the selection criteria. I need the script to look for the first field name from the field list and then look for the first value in the value list, make a selection, and then create a new feature class based on the selection with the output name = current field name&""¤t selection value. Then the the script should look for the next selection value and apply it to the current field, and so on. When there are no more selection values the script moves on to the next field name and makes a selection based on the first selection value again, and so on until there are no more selection values or field names.
#designate tower generated service location layer
SL = r"J:\workspace\Crown_Geocode\gisdb\layers.gdb\Rt8_15"
#Select route numbers
rtlist = []
while True:
route = raw_input("Route Number (press enter when finished: ")
rtlist.append(route)
if route = "":
break
#create new feature classes based on route number and day of service
arcpy.MakeFeatureLayer_management("Rt8_15", "Copy_Rt8_15")
fields = ("MonRoute","TueRoute","WedRoute","ThuRoute","FriRoute")
for field in fields, route in routes:
arcpy.SelectLayerByAttribute_management("Copy_Rt8_15", "NEW_SELECTION", ' field = route ')
arcpy.CopyFeatures_management("Copy_Rt8_15", ??????)
I should note that I will eventually want to use GetParametersAsText.