<?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: Wanting to change licence midway througha model in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/wanting-to-change-licence-midway-througha-model/m-p/852000#M3528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I couldn't get the link to work for SetProduct within arcpy resources. However, if you google, SetProduct arcpy esri, you should be able to find the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 23:48:59 GMT</pubDate>
    <dc:creator>SamuelTompsett</dc:creator>
    <dc:date>2015-07-09T23:48:59Z</dc:date>
    <item>
      <title>Wanting to change licence midway througha model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/wanting-to-change-licence-midway-througha-model/m-p/851998#M3526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because of the way our licensing model works we get charged per minute on sliding scale of what type of license we are using,&amp;nbsp; I am trying to reduce my costs by changing license level throughout the processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I was wondering is there a way to change licenses levels halfway through a model or a python script ?&amp;nbsp; I have searched for a tool but cant find it &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&amp;nbsp; however if there was a python snippet that would do the job it would be awesome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 22:46:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/wanting-to-change-licence-midway-througha-model/m-p/851998#M3526</guid>
      <dc:creator>Leith_JohnHAWKINS</dc:creator>
      <dc:date>2015-07-09T22:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Wanting to change licence midway througha model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/wanting-to-change-licence-midway-througha-model/m-p/851999#M3527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that this can be done in ArcObjects via IAoInitialize, but it isn't possible out-of-the box with Python or ModelBuilder. From ModelBuilder within the UI the license is derived from the ArcGIS application used to open the model (i.e. if you open the model in ArcMap with a Basic license the model will use a Basic license).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within python there was a method in the 9.2 days called &lt;STRONG&gt;SetProduct&lt;/STRONG&gt;, which could be used to set the license, but it appears that function has been deprecated by the arcpy site package. With arcpy you'd need to set the license prior to importing the arcpy site package, so it wouldn't allow you to change licenses in the middle of the tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="116290" alt="setProduct.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/116290_setProduct.png" style="width: 620px; height: 672px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is just a guess, but you may be able to get what you need to work in python if you run the various parts of your workflow on separate processes. When the new process starts you'd begin by importing the license level needed (i.e. arcinfo, arceditor, arcview, arcserver, arcenginegeodb, or arcengine) and execute your needed logic. Once the process ends and returns the license you'd begin the next process with the next needed license. This of course would be assuming that you had a concurrent use license that has the different license levels available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Accessing licenses and extensions in Python&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/python/access-to-licensing-and-extensions.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/analyze/python/access-to-licensing-and-extensions.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 23:28:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/wanting-to-change-licence-midway-througha-model/m-p/851999#M3527</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-07-09T23:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Wanting to change licence midway througha model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/wanting-to-change-licence-midway-througha-model/m-p/852000#M3528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I couldn't get the link to work for SetProduct within arcpy resources. However, if you google, SetProduct arcpy esri, you should be able to find the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 23:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/wanting-to-change-licence-midway-througha-model/m-p/852000#M3528</guid>
      <dc:creator>SamuelTompsett</dc:creator>
      <dc:date>2015-07-09T23:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Wanting to change licence midway througha model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/wanting-to-change-licence-midway-througha-model/m-p/852001#M3529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks thats just the Info I was after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 00:45:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/wanting-to-change-licence-midway-througha-model/m-p/852001#M3529</guid>
      <dc:creator>Leith_JohnHAWKINS</dc:creator>
      <dc:date>2015-07-14T00:45:57Z</dc:date>
    </item>
  </channel>
</rss>

