<?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 Is it possible to automatically set a geodatabase location for all tools to store feature classes to in Model Builder without having to go into each tool and change the location? in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-to-automatically-set-a-geodatabase/m-p/881679#M1954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for tools in Model Builder to automatically change their output filegeodatabase to a created file geodatabase from earlier in the model.&amp;nbsp; Right now I need to go into each and every tool and change the output geodatabase to the one created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2018 15:23:01 GMT</pubDate>
    <dc:creator>MichaelHutchison</dc:creator>
    <dc:date>2018-03-28T15:23:01Z</dc:date>
    <item>
      <title>Is it possible to automatically set a geodatabase location for all tools to store feature classes to in Model Builder without having to go into each tool and change the location?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-to-automatically-set-a-geodatabase/m-p/881679#M1954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for tools in Model Builder to automatically change their output filegeodatabase to a created file geodatabase from earlier in the model.&amp;nbsp; Right now I need to go into each and every tool and change the output geodatabase to the one created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 15:23:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-to-automatically-set-a-geodatabase/m-p/881679#M1954</guid>
      <dc:creator>MichaelHutchison</dc:creator>
      <dc:date>2018-03-28T15:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to automatically set a geodatabase location for all tools to store feature classes to in Model Builder without having to go into each tool and change the location?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-to-automatically-set-a-geodatabase/m-p/881680#M1955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can reference an output variable using the name of the variable.&amp;nbsp; Take a look at the graphic below.&amp;nbsp; The model creates a an output geodatabase.&amp;nbsp; I renamed this output by right-clicking on the oval &amp;gt; Rename &amp;gt; specified 'Workspace' as the name.&amp;nbsp; I can then reference this output using %Workspace% in other tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/400041_Screen1.PNG" style="width: 620px; height: 410px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, in the Feature Class to Feature Class tool I specify the output workspace simply using %Workspace%:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/400042_pastedImage_2.png" style="width: 620px; height: 164px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Get Count tool input, I can specify a feature class using %Workspace% as well:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/400064_pastedImage_3.png" style="width: 620px; height: 65px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be a good practice moving forward.&amp;nbsp; You can simply change the name of a variable and it will reflect in any tool referencing that variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 19:18:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-to-automatically-set-a-geodatabase/m-p/881680#M1955</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2018-03-28T19:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to automatically set a geodatabase location for all tools to store feature classes to in Model Builder without having to go into each tool and change the location?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-to-automatically-set-a-geodatabase/m-p/881681#M1956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you go to model &amp;gt; properties you can set any environment setting for the whole model. Any tool in the model that uses that environment setting should inherit this, so in your case you would set the workspace environment setting. This is discussed &lt;A href="http://desktop.arcgis.com/en/arcmap/10.5/analyze/modelbuilder/setting-environments-for-an-entire-model.htm"&gt;here&lt;/A&gt;. This avoids having to create and manage inline variables as suggested by&amp;nbsp;&lt;A href="https://community.esri.com/people/jskinner-esristaff"&gt;jskinner-esristaff&lt;/A&gt; (although technically there is nothing wrong with that approach, one could argue it is more transparent rather than a invisible setting).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 15:53:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-to-automatically-set-a-geodatabase/m-p/881681#M1956</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2018-04-06T15:53:04Z</dc:date>
    </item>
  </channel>
</rss>

