<?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: Getting Script Functionality Working In Model in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827705#M1441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh, got it. Thanks Curtis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2019 16:59:38 GMT</pubDate>
    <dc:creator>ChrisHolmes</dc:creator>
    <dc:date>2019-01-23T16:59:38Z</dc:date>
    <item>
      <title>Getting Script Functionality Working In Model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827697#M1433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a script tool that is quite simple. It's main purpose is in displaying the following drop down list, the script itself doesn't really do much.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="414" src="https://community.esri.com/legacyfs/online/433637_scriptInterface.png" width="389" /&gt;&lt;/P&gt;&lt;P&gt;I am using the validation tab in the script tool to put the code to generate the items for the drop down list:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/433638_validation.png" /&gt;&lt;/P&gt;&lt;P&gt;The script itself just displays the name of the selected lucode:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image" height="136" src="https://community.esri.com/legacyfs/online/433639_script.png" width="337" /&gt;&lt;/P&gt;&lt;P&gt;This all works fine on it's own as a script tool. But what I really want to do is to be able to use this list in modelbuilder and have it as a model parameter. As far as I can tell it seems as soon as I drag this script tool onto the modelbuilder interface, I lose the functionality that was available when it was run on it's own as a script tool.&lt;/P&gt;&lt;P&gt;Am I missing something? Is there a way I can get this drop down list displayed in modelbuilder and use it as a model parameter?&lt;/P&gt;&lt;P&gt;Thanks everyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2019 22:45:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827697#M1433</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2019-01-17T22:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Script Functionality Working In Model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827698#M1434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 15:44:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827698#M1434</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2019-01-18T15:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Script Functionality Working In Model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827699#M1435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show the parameters tab?&amp;nbsp; I assume the second parameter is a derived string data type set for output.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 17:20:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827699#M1435</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2019-01-18T17:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Script Functionality Working In Model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827700#M1436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Randy,&lt;/P&gt;&lt;P&gt;Kind of bizarre, but today for the life of me I cannot find the python script or the script tool in Arcmap (I guess this is what I get for not using a repository). You are correct though in that the second one would be derived output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the moment I'm working on a work around where I've exported the model as a script which should allow me to add the above code into the validation tab. It's too bad that we can't add validation code to the model parameters, it would seem to make sense to be able to do that but I'm sure there's stuff going on that wouldn't allow it in a model that I don't know about?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 17:54:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827700#M1436</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2019-01-18T17:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Script Functionality Working In Model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827701#M1437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's true that dynamic parameter validation is not possible in Model Builder.&amp;nbsp; My guess is doing that could make it even slower. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possible workaround&amp;nbsp;is to create a script tool (with validation included) that imports your toolbox and&amp;nbsp;runs your model&amp;nbsp;tool. (Since export to script is not available in ArcGIS Pro this may be an easier option for Pro users.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 23:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827701#M1437</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-01-18T23:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Script Functionality Working In Model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827702#M1438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Curtis. You make a good point, it likely would add another layer of slowness to the model execution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Importing the toolbox is a good idea also. We have yet to fully immerse ourselves in pro yet (just dipped our big toe into it so far!).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jan 2019 14:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827702#M1438</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2019-01-19T14:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Script Functionality Working In Model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827703#M1439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I've exported the model to a script and when I try running the script I'm running into the following error:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/434343_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what it's trying to do. Is it trying to load the AgendaMapping.tbx into memory and running into a problem? I only say that because 'CreateSiteLocation', 'DropDownList', 'EditLuCode', 'Export-OP- are all names of models/scripts that are in AgendaMapping.tbx. Maybe there's something it doesn't like about the 'Export-OP- script? I do have a few scripts that start with Export-OP-. Maybe as a test I should rename them and see if the error continues?&lt;/P&gt;&lt;P&gt;Any other ideas appreciated. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jan 2019 16:38:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827703#M1439</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2019-01-19T16:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Script Functionality Working In Model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827704#M1440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It&amp;nbsp;looks like you have "-" embedded in a tool name. Tools are implemented as Python functions in arcpy so only alphanumeric characters should be used.&lt;/P&gt;&lt;P&gt;Note the labels (captions) you see when using the toolbox can have spaces and whatnot, I'm talking about the tool name in the model properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 16:13:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827704#M1440</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-01-23T16:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Script Functionality Working In Model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827705#M1441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh, got it. Thanks Curtis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 16:59:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/getting-script-functionality-working-in-model/m-p/827705#M1441</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2019-01-23T16:59:38Z</dc:date>
    </item>
  </channel>
</rss>

