<?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: setting blank &amp;quot; &amp;quot;output feature class value for Python toolbox parameter in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/setting-blank-quot-quot-output-feature-class-value/m-p/17523#M1332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I don't know if I follow exactly what you're getting at here, but I think you need to actually return something from your method; probably &lt;SPAN style="font-family: 'courier new', courier;"&gt;parameters&lt;/SPAN&gt;. Right now your changing the &lt;SPAN style="font-family: 'courier new', courier;"&gt;.enabled&lt;/SPAN&gt; and &lt;SPAN style="font-family: 'courier new', courier;"&gt;.value&lt;/SPAN&gt; attributes of &lt;SPAN style="font-family: 'courier new', courier;"&gt;parameters[1]&lt;/SPAN&gt;, but those changes are only in the local variables for the method, they don't go anywhere. Try this at the end.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14280179924634150" data-renderedposition="71_8_912_16" jivemacro_uid="_14280179924634150"&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;return parameters&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Then I'm assuming you use &lt;SPAN style="font-family: 'courier new', courier;"&gt;parameters&lt;/SPAN&gt; as input for some other process or method, in which case it should have the new properties you set in &lt;SPAN style="font-family: 'courier new', courier;"&gt;updateParameters()&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, &lt;A href="https://community.esri.com/migrated-users/34684"&gt;Adam Cox&lt;/A&gt;​, for the clarification.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2015 23:41:01 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2015-04-02T23:41:01Z</dc:date>
    <item>
      <title>setting blank " "output feature class value for Python toolbox parameter</title>
      <link>https://community.esri.com/t5/python-questions/setting-blank-quot-quot-output-feature-class-value/m-p/17521#M1330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to Python toolboxes.&amp;nbsp; I have 2 parameters,&amp;nbsp; param0 is an input text file, param1 is an output feature class.&lt;/P&gt;&lt;P&gt;I want param1 disabled,&lt;/P&gt;&lt;P&gt;which works fine, once it is enabled, I want it blank,&lt;/P&gt;&lt;P&gt;but it is populated with "&lt;EM&gt;C:\Users\Dave\Documents\ArcGIS\Default.gdb\test_CreatePolygon"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def updateParameters(self, parameters):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Modify the values and properties of parameters before internal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; validation is performed.&amp;nbsp; This method is called whenever a parameter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; has been changed."""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( parameters[0].value):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters[1].enabled = True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;parameters[1].value = ""&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 22:42:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-blank-quot-quot-output-feature-class-value/m-p/17521#M1330</guid>
      <dc:creator>DaveVerbyla</dc:creator>
      <dc:date>2015-04-01T22:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: setting blank " "output feature class value for Python toolbox parameter</title>
      <link>https://community.esri.com/t5/python-questions/setting-blank-quot-quot-output-feature-class-value/m-p/17522#M1331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need the parentheses around the if condition... does removing those change the outcome?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 22:54:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-blank-quot-quot-output-feature-class-value/m-p/17522#M1331</guid>
      <dc:creator>AdamCox1</dc:creator>
      <dc:date>2015-04-02T22:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: setting blank " "output feature class value for Python toolbox parameter</title>
      <link>https://community.esri.com/t5/python-questions/setting-blank-quot-quot-output-feature-class-value/m-p/17523#M1332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I don't know if I follow exactly what you're getting at here, but I think you need to actually return something from your method; probably &lt;SPAN style="font-family: 'courier new', courier;"&gt;parameters&lt;/SPAN&gt;. Right now your changing the &lt;SPAN style="font-family: 'courier new', courier;"&gt;.enabled&lt;/SPAN&gt; and &lt;SPAN style="font-family: 'courier new', courier;"&gt;.value&lt;/SPAN&gt; attributes of &lt;SPAN style="font-family: 'courier new', courier;"&gt;parameters[1]&lt;/SPAN&gt;, but those changes are only in the local variables for the method, they don't go anywhere. Try this at the end.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14280179924634150" data-renderedposition="71_8_912_16" jivemacro_uid="_14280179924634150"&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;return parameters&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Then I'm assuming you use &lt;SPAN style="font-family: 'courier new', courier;"&gt;parameters&lt;/SPAN&gt; as input for some other process or method, in which case it should have the new properties you set in &lt;SPAN style="font-family: 'courier new', courier;"&gt;updateParameters()&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, &lt;A href="https://community.esri.com/migrated-users/34684"&gt;Adam Cox&lt;/A&gt;​, for the clarification.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 23:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-blank-quot-quot-output-feature-class-value/m-p/17523#M1332</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-04-02T23:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: setting blank " "output feature class value for Python toolbox parameter</title>
      <link>https://community.esri.com/t5/python-questions/setting-blank-quot-quot-output-feature-class-value/m-p/17524#M1333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, see this documentation: &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Customizing_tool_behavior_in_a_Python_toolbox/00150000002m000000/" title="http://resources.arcgis.com/en/help/main/10.1/index.html#/Customizing_tool_behavior_in_a_Python_toolbox/00150000002m000000/"&gt;ArcGIS Help 10.1&lt;/A&gt; Go down to the examples and you'll see that, just like in the normal ToolValidator class for script tools (i.e. not in a Python toolbox), the updateParameters() method does not return any objects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 14:41:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-blank-quot-quot-output-feature-class-value/m-p/17524#M1333</guid>
      <dc:creator>AdamCox1</dc:creator>
      <dc:date>2015-04-03T14:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: setting blank " "output feature class value for Python toolbox parameter</title>
      <link>https://community.esri.com/t5/python-questions/setting-blank-quot-quot-output-feature-class-value/m-p/17525#M1334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't realize this is was something that Esri designed. Thanks for the clarification.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 14:51:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-blank-quot-quot-output-feature-class-value/m-p/17525#M1334</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-04-03T14:51:30Z</dc:date>
    </item>
  </channel>
</rss>

