Selecting Consecutive Rows in a Feature Class in Python

Discussion created by hsctab14 on Jan 25, 2012
Latest reply on Jan 25, 2012 by hsctab14
I am trying to find a piece of python code that will select consecutive rows in a feature class.

I want to select all features in a feature class where a field is less than 6 (Hours < 6). I can do this part.

I then want to select the next feature below each of those that are less than 6, no matter what it's field value is, so I can get a start and end point. I have tried using the search cursor, but I'm not real familiar with how it works. Is there a bit of code that would accomplish what I'm trying to do? Thanks for any help!

Tommy Burk