AnsweredAssumed Answered

Is there a way to make a SearchCursor ignore a selection?

Question asked by Hornbydd on Aug 27, 2015
Latest reply on Aug 27, 2015 by Hornbydd

Arcpy Guru's,

 

When you use a TableView with a selection as the table in a SearchCursor, the cursor honours the existing selection. I was wondering is there a property or way of making a cursor simply ignore any existing selection?  Why would I want this? Well I want to summarize a field in the whole table but the table had a selection (which is important), I do not want to clear the selection as I use the selection in some later processing.

 

For example in ArcMap when you use the GUI tool Select By Location you have a check box that allows you to use or not use the selected features. I could not find a property or parameter of the cursor to say "ignore the selection, process all records, but don't clear the selection"?

 

Duncan

Outcomes