<?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: Submodel and iterator in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/submodel-and-iterator/m-p/810258#M1412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bartosz, got a simple solution for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ditch the sub-model. I have recreated your model with test data and have a working solution.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="431768" alt="" class="image-1 jive-image" height="479" src="https://community.esri.com/legacyfs/online/431768_1.png" width="858" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert a model variable Workspace (In Model Builder - Insert &amp;gt; Create Variable &amp;gt; Workspace)&lt;/P&gt;&lt;P&gt;Create a file geodatabase using&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/examples-of-inline-model-variable-substitution.htm"&gt;inline variables&lt;/A&gt;&amp;nbsp;the inline variable comes form the iterator where you set the Group by Fields field. Think of it as setting the attribute which will give the geodatabase and watershed output its name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="431769" alt="" class="image-2 j-img-centered jive-image" height="366" src="https://community.esri.com/legacyfs/online/431769_3.png" style="display: block; margin-left: auto; margin-right: auto;" width="441" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then build your model as above. Make sure to use the geodatabase creation location within your clip with the inline variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="431770" alt="" class="jive-image image-3 j-img-centered j-img-original" src="https://community.esri.com/legacyfs/online/431770_2.png" style="display: block; margin-left: auto; margin-right: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And set the output of the Create File GDB tool as a prerequisite for the Clip to insure the database is created first before you try to place model outputs from the Clip into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what the output looks like:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="431774" alt="" class="jive-image j-img-centered image-4 j-img-original" src="https://community.esri.com/legacyfs/online/431774_4.png" style="display: block; margin-left: auto; margin-right: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2018 14:32:29 GMT</pubDate>
    <dc:creator>JakeSimms1</dc:creator>
    <dc:date>2018-12-17T14:32:29Z</dc:date>
    <item>
      <title>Submodel and iterator</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/submodel-and-iterator/m-p/810257#M1411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case I would like to automate hole process but i have little problem with submodel and iterator. So what is going on? I hava few shapefiles (watersheds) and i want export each to geodatabase. So I created submodel. After that I would like to clip contours (generated from DTM). Clip feature: every watershed polygon, Input feature: contour. I created iterator based on previous mentioned watersheds database but after loop the model export shapefiles to geodatabase again and again. I know that iterator after submodel is wrong but how to created model on proper way?&lt;/P&gt;&lt;P&gt;Thank for help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 07:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/submodel-and-iterator/m-p/810257#M1411</guid>
      <dc:creator>BartoszBrzeziński1</dc:creator>
      <dc:date>2018-09-26T07:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Submodel and iterator</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/submodel-and-iterator/m-p/810258#M1412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bartosz, got a simple solution for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ditch the sub-model. I have recreated your model with test data and have a working solution.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="431768" alt="" class="image-1 jive-image" height="479" src="https://community.esri.com/legacyfs/online/431768_1.png" width="858" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert a model variable Workspace (In Model Builder - Insert &amp;gt; Create Variable &amp;gt; Workspace)&lt;/P&gt;&lt;P&gt;Create a file geodatabase using&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/examples-of-inline-model-variable-substitution.htm"&gt;inline variables&lt;/A&gt;&amp;nbsp;the inline variable comes form the iterator where you set the Group by Fields field. Think of it as setting the attribute which will give the geodatabase and watershed output its name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="431769" alt="" class="image-2 j-img-centered jive-image" height="366" src="https://community.esri.com/legacyfs/online/431769_3.png" style="display: block; margin-left: auto; margin-right: auto;" width="441" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then build your model as above. Make sure to use the geodatabase creation location within your clip with the inline variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="431770" alt="" class="jive-image image-3 j-img-centered j-img-original" src="https://community.esri.com/legacyfs/online/431770_2.png" style="display: block; margin-left: auto; margin-right: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And set the output of the Create File GDB tool as a prerequisite for the Clip to insure the database is created first before you try to place model outputs from the Clip into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what the output looks like:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="431774" alt="" class="jive-image j-img-centered image-4 j-img-original" src="https://community.esri.com/legacyfs/online/431774_4.png" style="display: block; margin-left: auto; margin-right: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2018 14:32:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/submodel-and-iterator/m-p/810258#M1412</guid>
      <dc:creator>JakeSimms1</dc:creator>
      <dc:date>2018-12-17T14:32:29Z</dc:date>
    </item>
  </channel>
</rss>

