Solved! Go to Solution.
sorted(arcpy.da.SearchCursor(table, 'atribute'))
with arcpy.da.Editor(workspace) as edit: arcpy.Sort_management (in_dataset, out_dataset, sort_field)
arcpy.gp.UpdateCursor (stream_in,"","","", "LINKNO D") count1 = arcpy.gp.GetCount_management(stream_in) cursor = arcpy.SearchCursor(stream_in) row = cursor.next() fid = row.FID print "naming fid" print fid
The LINKNO attribute counts up to 449 and it is the line with 449 as the attribute that I want the script to read first. When I call the fid it still reads as fid 0, not 115 as I was shooting for.arcpy.gp.UpdateCursor (stream_in,"","","", "LINKNO D") count1 = arcpy.gp.GetCount_management(stream_in) cursor = arcpy.SearchCursor(stream_in) row = cursor.next() fid = row.FID print "naming fid" print fid
maxValue = arcpy.gp.SearchCursor(stream_in,"","","", "LINKNO D").next().getValue(FID)