<?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: Question Regarding the If Selection Exists ModelBuilder Tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/question-regarding-the-if-selection-exists/m-p/1246006#M66434</link>
    <description>&lt;P&gt;I think that depends on how you are bringing the submodels in. maybe 'hard code' the submodel processes to the main one and see if it works.&amp;nbsp; If it does, then I think you'll have your answer.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2023 14:27:36 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2023-01-06T14:27:36Z</dc:date>
    <item>
      <title>Question Regarding the If Selection Exists ModelBuilder Tool</title>
      <link>https://community.esri.com/t5/python-questions/question-regarding-the-if-selection-exists/m-p/1245521#M66406</link>
      <description>&lt;P&gt;I have several short models that use the &lt;STRONG&gt;If Selection Exists&lt;/STRONG&gt; logical tool, and they work great in ModelBuilder. &amp;nbsp;However, it appears that these individual models will not work when used as submodels in a Model Tool. &amp;nbsp;The ArcGIS Pro documentation states &lt;EM&gt;"&lt;/EM&gt;This tool is only available from the ModelBuilder ribbon for use in models. &amp;nbsp;The tool is not available from the &lt;STRONG&gt;Geoprocessing&lt;/STRONG&gt; pane or from Python." &amp;nbsp;Is this the reason why one or more of my submodels containing &lt;STRONG&gt;If Selection Exists&lt;/STRONG&gt;&amp;nbsp;will not work in my Model Tool?&lt;/P&gt;&lt;P&gt;I'll start with this basic question, and depending on what responses I receive, I'll provide further details on what I'm trying to do. &amp;nbsp;I am using ArcGIS Pro 3.0.3.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 05:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/question-regarding-the-if-selection-exists/m-p/1245521#M66406</guid>
      <dc:creator>CMorneau</dc:creator>
      <dc:date>2023-01-05T05:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding the If Selection Exists ModelBuilder Tool</title>
      <link>https://community.esri.com/t5/python-questions/question-regarding-the-if-selection-exists/m-p/1246006#M66434</link>
      <description>&lt;P&gt;I think that depends on how you are bringing the submodels in. maybe 'hard code' the submodel processes to the main one and see if it works.&amp;nbsp; If it does, then I think you'll have your answer.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 14:27:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/question-regarding-the-if-selection-exists/m-p/1246006#M66434</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-01-06T14:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding the If Selection Exists ModelBuilder Tool</title>
      <link>https://community.esri.com/t5/python-questions/question-regarding-the-if-selection-exists/m-p/1246105#M66438</link>
      <description>&lt;P&gt;Here is some sample data, note 2 points are selected:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DuncanHornby_0-1673027089220.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59895iCBB333C2B6AB18DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DuncanHornby_0-1673027089220.png" alt="DuncanHornby_0-1673027089220.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the sub-model (This I called Select Model), with a single selection exist tool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DuncanHornby_1-1673027198644.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59896i6AC3898630BB355E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DuncanHornby_1-1673027198644.png" alt="DuncanHornby_1-1673027198644.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the master model:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DuncanHornby_2-1673027262015.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59897iA1860D5678A28CCA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DuncanHornby_2-1673027262015.png" alt="DuncanHornby_2-1673027262015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If a selection exists as determined by the sub-model (Select Model) then buffer the selection, else do a selection based upon ID. All logic ran as expected, may be you were not exposing the parameters of the sub-model as Parameters (those P's)?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 17:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/question-regarding-the-if-selection-exists/m-p/1246105#M66438</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2023-01-06T17:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding the If Selection Exists ModelBuilder Tool</title>
      <link>https://community.esri.com/t5/python-questions/question-regarding-the-if-selection-exists/m-p/1300074#M67982</link>
      <description>&lt;P&gt;Did you ever find an alternative for this? I'm running into the same issue (I assume). If the True/False is a precondition for an out-of-the-box Esri tool, the model processes as I would expect.... True do this process; False do that process.&lt;BR /&gt;However, if the True/False is a preconditions for a sub-model, the processing doesn't seem to reach the sub-model and returns a Completed result.&lt;/P&gt;&lt;P&gt;- Brett&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 02:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/question-regarding-the-if-selection-exists/m-p/1300074#M67982</guid>
      <dc:creator>BrettLessner_Nsight</dc:creator>
      <dc:date>2023-06-16T02:00:49Z</dc:date>
    </item>
  </channel>
</rss>

