AnsweredAssumed Answered

arcpy.da.searchcursor with nothing selected returns all records

Question asked by bbolduc on Jan 27, 2015
Latest reply on Jan 27, 2015 by blake.terhune

I am trying to loop thru selected features using the da.SearchCursor statement below.  It works when the users selects something.  When there are no points or lines selected it returns the whole layer.  Should I be using another function?


       with arcpy.da.SearchCursor(manhole_layer,"*") as cursor:

            for row in cursor: