<?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 Iterate with sub model iteration in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/iterate-with-sub-model-iteration/m-p/779416#M3257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a model within a model. Each model has an iterator. The sub model has a iterate feature class instance and the main model has an iterate row selection. I need for each feature class a field calculated based on the individual polygon locations within the area of the selected row. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tries to pass the sub model to a collect values tool and use that as a parameter for the main model but "make feature layer" does not allow that as an input. How do I get each instance of the iterate sub model into the make feature layer command to create my selection?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 23:02:42 GMT</pubDate>
    <dc:creator>DavidCampbell</dc:creator>
    <dc:date>2014-11-24T23:02:42Z</dc:date>
    <item>
      <title>Iterate with sub model iteration</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterate-with-sub-model-iteration/m-p/779416#M3257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a model within a model. Each model has an iterator. The sub model has a iterate feature class instance and the main model has an iterate row selection. I need for each feature class a field calculated based on the individual polygon locations within the area of the selected row. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tries to pass the sub model to a collect values tool and use that as a parameter for the main model but "make feature layer" does not allow that as an input. How do I get each instance of the iterate sub model into the make feature layer command to create my selection?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 23:02:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterate-with-sub-model-iteration/m-p/779416#M3257</guid>
      <dc:creator>DavidCampbell</dc:creator>
      <dc:date>2014-11-24T23:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate with sub model iteration</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterate-with-sub-model-iteration/m-p/779417#M3258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 16:51:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterate-with-sub-model-iteration/m-p/779417#M3258</guid>
      <dc:creator>DavidCampbell</dc:creator>
      <dc:date>2014-11-25T16:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate with sub model iteration</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterate-with-sub-model-iteration/m-p/779418#M3259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand what you are trying to do correctly, you are trying to pass each feature class to the Make Feature Layer tool. If this is correct, your models are reversed. The &lt;EM&gt;Proxy_Background&lt;/EM&gt; model needs to be the parent model, and the &lt;EM&gt;Step_12_Caribou&lt;/EM&gt; model needs to be the child model. The following is what you need to do to each model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step_12_Caribou&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Remove the &lt;EM&gt;Proxy_Background&lt;/EM&gt; model and it's Iterates output&lt;/LI&gt;&lt;LI&gt;Right-click &lt;EM&gt;Make Feature Layer &lt;/EM&gt;&amp;gt; Make Variable &amp;gt; From Parameter &amp;gt; Input Features&lt;BR /&gt;This will allow you to make the input feature to this tool a parameter to the model&lt;/LI&gt;&lt;LI&gt;Right-click the newly created &lt;EM&gt;Input Feature&lt;/EM&gt; variable, and set is as a Model Parameter.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Proxy_Background&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Remove the &lt;EM&gt;Collect Values&lt;/EM&gt; tool and its output&lt;/LI&gt;&lt;LI&gt;Add the &lt;EM&gt;Step_12_Caribou&lt;/EM&gt; model&lt;/LI&gt;&lt;LI&gt;Connect the Feature Class output (on your screenshot named: &lt;EM&gt;Mkey_MUL3.shp&lt;/EM&gt;) as the Input Features to the model&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will produce one output from &lt;EM&gt;Step_12_Caribou&lt;/EM&gt; for each feature class found in &lt;EM&gt;Proxy_Background&lt;/EM&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 18:46:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterate-with-sub-model-iteration/m-p/779418#M3259</guid>
      <dc:creator>DavidBlanchard</dc:creator>
      <dc:date>2014-11-26T18:46:27Z</dc:date>
    </item>
  </channel>
</rss>

