Skip to main content
added 6 characters in body
Source Link
Midavalo
  • 29.9k
  • 11
  • 51
  • 105

I managed to accomplish what I wanted by using subquery sort and where clause with a step.

sort_fields = [["DestinationID", "ASCENDING"], ["Total_TravelTime", "ASCENDING"]] arcpy.Sort_management(AU2, out_AU2, sort_fields) arcpy.TableSelect_analysis(in_table=out_AU2, out_table=Ajad, where_clause="MOD(OBJECTID+3,2) = 0")

sort_fields = [["DestinationID", "ASCENDING"], ["Total_TravelTime", "ASCENDING"]]
arcpy.Sort_management(AU2, out_AU2, sort_fields)
arcpy.TableSelect_analysis(in_table=out_AU2, out_table=Ajad, where_clause="MOD(OBJECTID+3,2) = 0")

I managed to accomplish what I wanted by using subquery sort and where clause with a step.

sort_fields = [["DestinationID", "ASCENDING"], ["Total_TravelTime", "ASCENDING"]] arcpy.Sort_management(AU2, out_AU2, sort_fields) arcpy.TableSelect_analysis(in_table=out_AU2, out_table=Ajad, where_clause="MOD(OBJECTID+3,2) = 0")

I managed to accomplish what I wanted by using subquery sort and where clause with a step.

sort_fields = [["DestinationID", "ASCENDING"], ["Total_TravelTime", "ASCENDING"]]
arcpy.Sort_management(AU2, out_AU2, sort_fields)
arcpy.TableSelect_analysis(in_table=out_AU2, out_table=Ajad, where_clause="MOD(OBJECTID+3,2) = 0")
Source Link

I managed to accomplish what I wanted by using subquery sort and where clause with a step.

sort_fields = [["DestinationID", "ASCENDING"], ["Total_TravelTime", "ASCENDING"]] arcpy.Sort_management(AU2, out_AU2, sort_fields) arcpy.TableSelect_analysis(in_table=out_AU2, out_table=Ajad, where_clause="MOD(OBJECTID+3,2) = 0")