<?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 Model Builder:&amp;nbsp; Continue Processing If Features Selected in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-nbsp-continue-processing-if-features/m-p/257997#M8842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: kafros&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a feature class that may or may not have a number of features selected.&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;If &lt;/STRONG&gt;&lt;SPAN&gt; there are features selected, I want to process them using a Model Builder sequence I have prepared.&amp;nbsp; How do I check "if features are selected, continue, otherwise stop processing"?&amp;nbsp; I tried the following from looking at another post, but regardless whether the Boolean Output is "True" or "False", the model still continues processing past the Boolean Output point.&amp;nbsp; Does anyone have any suggestions to either improve upon my sequence or another solution that will do the checking for selected features?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached are two screenshots.&amp;nbsp; One is the sequence I set up in Model Builder, with the "check for selected features" Calculate Value first, and the second is the code within that Calculate Value tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27006[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27007[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would assume this is pretty basic, but it's stumping me.&amp;nbsp; Thank you for any assistance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Aug 2013 22:59:40 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-08-26T22:59:40Z</dc:date>
    <item>
      <title>Model Builder:  Continue Processing If Features Selected</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-nbsp-continue-processing-if-features/m-p/257997#M8842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: kafros&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a feature class that may or may not have a number of features selected.&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;If &lt;/STRONG&gt;&lt;SPAN&gt; there are features selected, I want to process them using a Model Builder sequence I have prepared.&amp;nbsp; How do I check "if features are selected, continue, otherwise stop processing"?&amp;nbsp; I tried the following from looking at another post, but regardless whether the Boolean Output is "True" or "False", the model still continues processing past the Boolean Output point.&amp;nbsp; Does anyone have any suggestions to either improve upon my sequence or another solution that will do the checking for selected features?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached are two screenshots.&amp;nbsp; One is the sequence I set up in Model Builder, with the "check for selected features" Calculate Value first, and the second is the code within that Calculate Value tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27006[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27007[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would assume this is pretty basic, but it's stumping me.&amp;nbsp; Thank you for any assistance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 22:59:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-nbsp-continue-processing-if-features/m-p/257997#M8842</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-26T22:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder:  Continue Processing If Features Selected</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-nbsp-continue-processing-if-features/m-p/257998#M8843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: bruce_harold&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kirsten&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use a GetCount process to find if you have a non-zero selection and make it a precondition of the process you want to run if you have a selection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 13:46:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-nbsp-continue-processing-if-features/m-p/257998#M8843</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-27T13:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder:  Continue Processing If Features Selected</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-nbsp-continue-processing-if-features/m-p/257999#M8844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, Bruce.&amp;nbsp; It sounds like a very simple solution, and though it took me a while, I figured out where the Get Count tool is and I think I was able to make it a precondition -- never used either technique before.&amp;nbsp; When I connected the Row Count to the next step in the process, I chose Precondition from the context menu.&amp;nbsp; I assume that's how I'm supposed to do it.&amp;nbsp; Unfortunately, even without a selection in my Layer, the Dissolve tool still ran in this example.&amp;nbsp; I'm sorry to ask, but can you take another look and see if I've missed something?&amp;nbsp; I'm still quite at amateur level with Model Builder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27019[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27020[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit:&amp;nbsp; Thinking about this further, and looking at the Python generated from the model, I can see that there's no check for "number of rows SELECTED" in this.&amp;nbsp; I'm not sure how to do that part with the Get Count tool.&amp;nbsp; Can you give me specifics as to how you recommend that part is done?&amp;nbsp; Much appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 15:24:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-nbsp-continue-processing-if-features/m-p/257999#M8844</guid>
      <dc:creator>KirstenFrost_Andersen</dc:creator>
      <dc:date>2013-08-27T15:24:42Z</dc:date>
    </item>
  </channel>
</rss>

