<?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 Re: Testing for selection in ModelBuilder in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/testing-for-selection-in-modelbuilder/m-p/755317#M3091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try GetCount as shown in the help files&amp;nbsp; &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//0017000000n7000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//0017000000n7000000&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2014 20:40:20 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2014-07-10T20:40:20Z</dc:date>
    <item>
      <title>Testing for selection in ModelBuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/testing-for-selection-in-modelbuilder/m-p/755316#M3090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a model that will create different buffers for different selections. So I'm using Make Feature Layer and adding an expression to select a subset of features and then using the buffer tool on that subset. But there may be times when a selection doesn't return any features, in which case I wouldn't want to run the buffer. Is there a way in ModelBuilder to test whether or not any features are selected and only run the subsequent step if there are?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively I could export to a Python script and handle this testing there but I'm not quite sure how to accomplish this in Python either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 20:35:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/testing-for-selection-in-modelbuilder/m-p/755316#M3090</guid>
      <dc:creator>ChrisBruce</dc:creator>
      <dc:date>2014-07-10T20:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for selection in ModelBuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/testing-for-selection-in-modelbuilder/m-p/755317#M3091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try GetCount as shown in the help files&amp;nbsp; &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//0017000000n7000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//0017000000n7000000&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 20:40:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/testing-for-selection-in-modelbuilder/m-p/755317#M3091</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-07-10T20:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for selection in ModelBuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/testing-for-selection-in-modelbuilder/m-p/755318#M3092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like just what I need. I'll give it a try and report back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 20:46:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/testing-for-selection-in-modelbuilder/m-p/755318#M3092</guid>
      <dc:creator>ChrisBruce</dc:creator>
      <dc:date>2014-07-10T20:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for selection in ModelBuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/testing-for-selection-in-modelbuilder/m-p/755319#M3093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing you can look at is the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//002w00000022000000"&gt;Using If-Then-Else logic for branching &lt;/A&gt;page in the desktop help. You could use this in addition to the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//0017000000n7000000"&gt;Get Count&lt;/A&gt; tool to handle how to proceed with the model based on the selected number of features.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 02:50:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/testing-for-selection-in-modelbuilder/m-p/755319#M3093</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2014-07-11T02:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for selection in ModelBuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/testing-for-selection-in-modelbuilder/m-p/755320#M3094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the excellent advice! GetCount is working like I need it to and I may well end up using the If-Then-Else logic before I'm done because I'll ultimately need to add some more complexity to this model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first it wasn't totally clear to me how to use GetCount but I found that I just needed to connect the output from that tool to the buffer tool as a precondition and that's it. If GetCount returns 0 then the precondition is false and the subsequent tool doens't execute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 14:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/testing-for-selection-in-modelbuilder/m-p/755320#M3094</guid>
      <dc:creator>ChrisBruce</dc:creator>
      <dc:date>2014-07-11T14:15:18Z</dc:date>
    </item>
  </channel>
</rss>

