ArcGIS Pro 2.5
I have made a manual selection of 38 polygons (of 240,000). In the python window of my project, I run a search cursor that looks like this:
<SPAN class="keyword token">with</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>da<SPAN class="punctuation token">.</SPAN>SearchCursor<SPAN class="punctuation token">(</SPAN>ng<SPAN class="punctuation token">,</SPAN><SPAN class="string token">'USNG'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="keyword token">as</SPAN> cursor<SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">for</SPAN> row <SPAN class="keyword token">in</SPAN> cursor<SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN>row<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>And it prints the row until the cows come home. I found this post from last year: Why is Search Cursor not honoring layer Selection? but it's about selections being made outside of Pro. I just ran GetCount () and it returns all the records. What the heck is going on?
