<?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: Script tool parameters in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/script-tool-parameters/m-p/705130#M54570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi jon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the help topic for the tool validator has a part about adding and filtering valuelists for script tool parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00150000000v000000.htm" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00150000000v000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2012 08:28:36 GMT</pubDate>
    <dc:creator>RaphaelR</dc:creator>
    <dc:date>2012-08-28T08:28:36Z</dc:date>
    <item>
      <title>Script tool parameters</title>
      <link>https://community.esri.com/t5/python-questions/script-tool-parameters/m-p/705129#M54569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is my first foray into the ToolValidator class so this might be a very basic issue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I???d like to read in a list of values from a list and display them as selectable in the script dialog as selectable options&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Parameters in the script tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[0] = name of mxd (required, arcmapdocument)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[1] = values (required, string, multivalue, filtered)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I assign a list such as &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;vals = [1,2,3,4,5,6,7]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;self.params[1] = vals&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the end I???d like this to pull data from a featureclass using a searchcursor but for now I???m trying to see if it will even take the basic list of values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 16:40:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-tool-parameters/m-p/705129#M54569</guid>
      <dc:creator>JonPedder</dc:creator>
      <dc:date>2012-08-27T16:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script tool parameters</title>
      <link>https://community.esri.com/t5/python-questions/script-tool-parameters/m-p/705130#M54570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi jon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the help topic for the tool validator has a part about adding and filtering valuelists for script tool parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00150000000v000000.htm" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00150000000v000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 08:28:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-tool-parameters/m-p/705130#M54570</guid>
      <dc:creator>RaphaelR</dc:creator>
      <dc:date>2012-08-28T08:28:36Z</dc:date>
    </item>
  </channel>
</rss>

