<?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 Value list missing model tools exported to python scripts? in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/value-list-missing-model-tools-exported-to-python/m-p/842565#M997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community, I built a tool with builder, however, i exported it python script to add more functionalities, but the script only shows the parameters but the list of values under each parameters is not displayed. I need it to display because that is where I want to set functionalities or is there any other way to edit such? please let me know ASAP. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This what my script looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;arcpy

&lt;SPAN style="color: #808080;"&gt;# Script arguments
&lt;/SPAN&gt;Sitename = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;)
&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;Sitename == &lt;SPAN style="color: #6a8759;"&gt;'#' &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;or not &lt;/SPAN&gt;Sitename:
    Sitename = &lt;SPAN style="color: #6a8759;"&gt;"All locations" &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# provide a default value if unspecified
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;Category = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;1&lt;/SPAN&gt;)
&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;Category == &lt;SPAN style="color: #6a8759;"&gt;'#' &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;or not &lt;/SPAN&gt;Category:
    Category = &lt;SPAN style="color: #6a8759;"&gt;"Gänse" &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# provide a default value if unspecified
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;Species = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;2&lt;/SPAN&gt;)
&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;Species == &lt;SPAN style="color: #6a8759;"&gt;'#' &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;or not &lt;/SPAN&gt;Species:
    Species = &lt;SPAN style="color: #6a8759;"&gt;"Graugans" &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# provide a default value if unspecified
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;Month = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;3&lt;/SPAN&gt;)
&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;Month == &lt;SPAN style="color: #6a8759;"&gt;'#' &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;or not &lt;/SPAN&gt;Month:
    Month = &lt;SPAN style="color: #6a8759;"&gt;"September" &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# provide a default value if unspecified
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;Start_Year = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;4&lt;/SPAN&gt;)
&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;Start_Year == &lt;SPAN style="color: #6a8759;"&gt;'#' &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;or not &lt;/SPAN&gt;Start_Year:
    Start_Year = &lt;SPAN style="color: #6a8759;"&gt;"2000" &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# provide a default value if unspecified
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;End_Year = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;5&lt;/SPAN&gt;)
&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;End_Year == &lt;SPAN style="color: #6a8759;"&gt;'#' &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;or not &lt;/SPAN&gt;End_Year:
    End_Year = &lt;SPAN style="color: #6a8759;"&gt;"2006" &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# provide a default value if unspecified&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/480006_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;That is my value list on the right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:18:30 GMT</pubDate>
    <dc:creator>AyokunleAdebisi1</dc:creator>
    <dc:date>2021-12-12T10:18:30Z</dc:date>
    <item>
      <title>Value list missing model tools exported to python scripts?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/value-list-missing-model-tools-exported-to-python/m-p/842565#M997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community, I built a tool with builder, however, i exported it python script to add more functionalities, but the script only shows the parameters but the list of values under each parameters is not displayed. I need it to display because that is where I want to set functionalities or is there any other way to edit such? please let me know ASAP. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This what my script looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;arcpy

&lt;SPAN style="color: #808080;"&gt;# Script arguments
&lt;/SPAN&gt;Sitename = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;)
&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;Sitename == &lt;SPAN style="color: #6a8759;"&gt;'#' &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;or not &lt;/SPAN&gt;Sitename:
    Sitename = &lt;SPAN style="color: #6a8759;"&gt;"All locations" &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# provide a default value if unspecified
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;Category = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;1&lt;/SPAN&gt;)
&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;Category == &lt;SPAN style="color: #6a8759;"&gt;'#' &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;or not &lt;/SPAN&gt;Category:
    Category = &lt;SPAN style="color: #6a8759;"&gt;"Gänse" &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# provide a default value if unspecified
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;Species = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;2&lt;/SPAN&gt;)
&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;Species == &lt;SPAN style="color: #6a8759;"&gt;'#' &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;or not &lt;/SPAN&gt;Species:
    Species = &lt;SPAN style="color: #6a8759;"&gt;"Graugans" &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# provide a default value if unspecified
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;Month = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;3&lt;/SPAN&gt;)
&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;Month == &lt;SPAN style="color: #6a8759;"&gt;'#' &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;or not &lt;/SPAN&gt;Month:
    Month = &lt;SPAN style="color: #6a8759;"&gt;"September" &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# provide a default value if unspecified
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;Start_Year = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;4&lt;/SPAN&gt;)
&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;Start_Year == &lt;SPAN style="color: #6a8759;"&gt;'#' &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;or not &lt;/SPAN&gt;Start_Year:
    Start_Year = &lt;SPAN style="color: #6a8759;"&gt;"2000" &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# provide a default value if unspecified
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;End_Year = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;5&lt;/SPAN&gt;)
&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;End_Year == &lt;SPAN style="color: #6a8759;"&gt;'#' &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;or not &lt;/SPAN&gt;End_Year:
    End_Year = &lt;SPAN style="color: #6a8759;"&gt;"2006" &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# provide a default value if unspecified&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/480006_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;That is my value list on the right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:18:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/value-list-missing-model-tools-exported-to-python/m-p/842565#M997</guid>
      <dc:creator>AyokunleAdebisi1</dc:creator>
      <dc:date>2021-12-12T10:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Value list missing model tools exported to python scripts?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/value-list-missing-model-tools-exported-to-python/m-p/842566#M998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you created your original tool you had to add your list values to a value list property of the parameter when you set up the tool interface. This is part of the interface and not the code behind the model, so will not export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You basically have to do it again when you set up the script tool interface.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 12:09:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/value-list-missing-model-tools-exported-to-python/m-p/842566#M998</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2020-02-28T12:09:38Z</dc:date>
    </item>
  </channel>
</rss>

