<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to get count from selectlayerbyattribute in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-get-count-from-selectlayerbyattribute/m-p/273202#M21128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm doing an arcpy.SelectLayerByAttribute_management and everything is working fine.&amp;nbsp; However I need to know if no records are selected so that I can handle that in my program.&amp;nbsp; If I do something like selCount = &lt;STRONG&gt;arcpy.SelectLayerByAttribute_management....&amp;nbsp; &lt;/STRONG&gt;will that give me the selected count?&amp;nbsp; What if I wanted to iterate through each of the selected features?&amp;nbsp; How would I go about doing that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Aug 2014 19:14:52 GMT</pubDate>
    <dc:creator>Hernando_CountyProperty_Apprai</dc:creator>
    <dc:date>2014-08-15T19:14:52Z</dc:date>
    <item>
      <title>How to get count from selectlayerbyattribute</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-count-from-selectlayerbyattribute/m-p/273202#M21128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm doing an arcpy.SelectLayerByAttribute_management and everything is working fine.&amp;nbsp; However I need to know if no records are selected so that I can handle that in my program.&amp;nbsp; If I do something like selCount = &lt;STRONG&gt;arcpy.SelectLayerByAttribute_management....&amp;nbsp; &lt;/STRONG&gt;will that give me the selected count?&amp;nbsp; What if I wanted to iterate through each of the selected features?&amp;nbsp; How would I go about doing that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 19:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-count-from-selectlayerbyattribute/m-p/273202#M21128</guid>
      <dc:creator>Hernando_CountyProperty_Apprai</dc:creator>
      <dc:date>2014-08-15T19:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get count from selectlayerbyattribute</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-count-from-selectlayerbyattribute/m-p/273203#M21129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The help file contains a link to the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000071000000"&gt;GetCount Tool&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"The &lt;SPAN&gt;&lt;A class="xref" href="http://resources.arcgis.com/en/help/main/10.2/0017/0017000000n7000000.htm" rel="/en/help/main/10.2/0017/0017000000n7000000.htm"&gt;Get Count&lt;/A&gt;&lt;/SPAN&gt; tool can be used to determine the number of features or rows selected.&amp;nbsp; This can be especially useful in a script or model to determine if further processing is desired."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 19:26:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-count-from-selectlayerbyattribute/m-p/273203#M21129</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-15T19:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get count from selectlayerbyattribute</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-count-from-selectlayerbyattribute/m-p/273204#M21130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan.&amp;nbsp; That worked perfectly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 19:44:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-count-from-selectlayerbyattribute/m-p/273204#M21130</guid>
      <dc:creator>Hernando_CountyProperty_Apprai</dc:creator>
      <dc:date>2014-08-15T19:44:39Z</dc:date>
    </item>
  </channel>
</rss>

