<?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: How can I force a python toolbox to refresh? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569580#M44640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a way you can refresh a python toolbox:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/160547"&gt;Python toolbox doesn't want to refresh&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a good day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2015 15:23:12 GMT</pubDate>
    <dc:creator>CharlesGasse1</dc:creator>
    <dc:date>2015-06-16T15:23:12Z</dc:date>
    <item>
      <title>How can I force a python toolbox to refresh?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569575#M44635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to ease the entry of the parameters, whenever the toolbox is opened, the latest parameters are being read from a table, and if changed are saved back. The problem is that the toolbox must be manually refreshed every time for the parameters to be displayed correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def getParameterInfo(self):&lt;/P&gt;&lt;P&gt; cursor = arcpy.da.SearchCursor("Parameters", ['data_set', 'date_p', 'from_p', 'to_p', 'location_p', 'wait_p', 'distance_p'])&lt;/P&gt;&lt;P&gt; for row in cursor:&lt;/P&gt;&lt;P&gt;&amp;nbsp; ds=row[0]&lt;/P&gt;&lt;P&gt;&amp;nbsp; date_p=row[1]&lt;/P&gt;&lt;P&gt;&amp;nbsp; from_p=row[2]&lt;/P&gt;&lt;P&gt;&amp;nbsp; to_p=row[3]&lt;/P&gt;&lt;P&gt;&amp;nbsp; location_p=row[4]&lt;/P&gt;&lt;P&gt;&amp;nbsp; wait_p=row[5]&lt;/P&gt;&lt;P&gt;&amp;nbsp; distance_p=row[6]&lt;/P&gt;&lt;P&gt;&amp;nbsp; l_ds="results-"+ds&lt;/P&gt;&lt;P&gt; param0 = arcpy.Parameter(&lt;/P&gt;&lt;P&gt;&amp;nbsp; displayName="Destinations",&lt;/P&gt;&lt;P&gt;&amp;nbsp; name="in_destinations",&lt;/P&gt;&lt;P&gt;&amp;nbsp; datatype="GPString",&lt;/P&gt;&lt;P&gt;&amp;nbsp; parameterType="Required",&lt;/P&gt;&lt;P&gt;&amp;nbsp; direction="Input")&lt;/P&gt;&lt;P&gt; param0.filter.type = "ValueList"&lt;/P&gt;&lt;P&gt; values = [row[0] for row in arcpy.da.SearchCursor(l_ds, ("location"))]&lt;/P&gt;&lt;P&gt; param0.value=location_p&lt;/P&gt;&lt;P&gt; lst = list(set(values))&lt;/P&gt;&lt;P&gt; lst.sort()&lt;/P&gt;&lt;P&gt; param0.filter.list = lst&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def execute(self, parameters, messages):&lt;/P&gt;&lt;P&gt; arcpy.env.workspace =""&lt;/P&gt;&lt;P&gt; location_p=parameters[0].valueAsText&lt;/P&gt;&lt;P&gt; date_p=parameters[1].valueAsText&lt;/P&gt;&lt;P&gt; from_p=parameters[2].valueAsText&lt;/P&gt;&lt;P&gt; to_p=parameters[3].valueAsText&lt;/P&gt;&lt;P&gt; wait_p=parameters[4].valueAsText&lt;/P&gt;&lt;P&gt; distance_p=parameters[5].valueAsText&lt;/P&gt;&lt;P&gt; cursor = arcpy.da.UpdateCursor("Parameters", ['date_p', 'from_p', 'to_p', 'location_p', 'wait_p', 'distance_p'])&lt;/P&gt;&lt;P&gt; for row in cursor:&lt;/P&gt;&lt;P&gt;&amp;nbsp; row[0]=date_p&lt;/P&gt;&lt;P&gt;&amp;nbsp; row[1]=from_p&lt;/P&gt;&lt;P&gt;&amp;nbsp; row[2]=to_p&lt;/P&gt;&lt;P&gt;&amp;nbsp; row[3]=location_p&lt;/P&gt;&lt;P&gt;&amp;nbsp; row[4]=wait_p&lt;/P&gt;&lt;P&gt;&amp;nbsp; row[5]=distance_p&lt;/P&gt;&lt;P&gt;&amp;nbsp; cursor.updateRow(row)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 18:46:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569575#M44635</guid>
      <dc:creator>YuvalHadas</dc:creator>
      <dc:date>2014-08-13T18:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I force a python toolbox to refresh?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569576#M44636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do it in &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Customizing_tool_behavior_in_a_Python_toolbox/00150000002m000000/"&gt;the updateParameters method&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1407956146115542 jive_text_macro" jivemacro_uid="_1407956146115542" modifiedtitle="true"&gt;
&lt;P&gt;def getParameterInfo(self):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor("Parameters", ['location_p']) as cursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location_p = row[0]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; param0 = arcpy.Parameter(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; displayName="Destinations",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="in_destinations",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datatype="GPString",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameterType="Required",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; direction="Input")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; param0.filter.type = "ValueList"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; param0.filter.list = []&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; param0.value = location_p&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return [param0]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def updateParametrs(self, parameters)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; param0 = parameters[0]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor("Parameters", ['data_set']) as cursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_ds = "results-" + row[0]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values = sorted(set([row[0] for row in arcpy.da.SearchCursor(l_ds, ("location"))]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; param0.filter.list = values&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 18:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569576#M44636</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2014-08-13T18:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I force a python toolbox to refresh?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569577#M44637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I was not clear with the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter A's value in the file is "0" (from previous execution).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Toolbox is being refreshed from the catalog window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First execution of the toolbox. Parameter A default value is being read from the file. On screen default value is "0". Parameter A is set to "1". The rest of execution is with value "1". Value "1" is updated to the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second execution of the toolbox. Parameter A default value is being read from the file. On screen default value is "0" (should have been "1"). Parameter A is set to "2". The rest of execution is with value "2". Value "2" is updated to the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Toolbox is being refreshed from the catalog window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Third execution of the toolbox. Parameter A default value is being read from the file. On screen default value is "2" (due to refresh)...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 20:02:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569577#M44637</guid>
      <dc:creator>YuvalHadas</dc:creator>
      <dc:date>2014-08-13T20:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I force a python toolbox to refresh?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569578#M44638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not directly supported in the geoprocessing framework. You could get around it by writing the name of the data to a file in .execute and having the .getParameterInfo() read it when it loads.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 22:00:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569578#M44638</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2014-08-13T22:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I force a python toolbox to refresh?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569579#M44639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that this is what I've done. the .getParameterInfo() loads the data, while the .execute() saves the data. As I stated, the data is saved and executed correctly, but it does not assigned as default value, unless I refresh the toolbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14080136468768935 jive_text_macro" jivemacro_uid="_14080136468768935"&gt;
&lt;P&gt;class select_data(object):&lt;/P&gt;
&lt;P&gt;&amp;nbsp; def __init__(self):&lt;/P&gt;
&lt;P&gt;&amp;nbsp; """Define the tool (tool name is the name of the class)."""&lt;/P&gt;
&lt;P&gt;&amp;nbsp; self.label = "Select Data"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; self.description = ""&lt;/P&gt;
&lt;P&gt;&amp;nbsp; self.canRunInBackground = False&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; def getParameterInfo(self):&lt;/P&gt;
&lt;P&gt;&amp;nbsp; """Define parameter definitions"""&lt;/P&gt;
&lt;P&gt;&amp;nbsp; cursor = arcpy.da.SearchCursor("Parameters", ['data_set'])&lt;/P&gt;
&lt;P&gt;&amp;nbsp; for row in cursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ds=row[0]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; param0 = arcpy.Parameter(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; displayName="File",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; name="in_file",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; datatype="GPString",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; parameterType="Required",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; direction="Input")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; param0.value=ds&lt;/P&gt;
&lt;P&gt;&amp;nbsp; params = [param0]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return params&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; def isLicensed(self):&lt;/P&gt;
&lt;P&gt;&amp;nbsp; """Set whether tool is licensed to execute."""&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return True&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; def updateParameters(self, parameters):&lt;/P&gt;
&lt;P&gt;&amp;nbsp; """Modify the values and properties of parameters before internal&lt;/P&gt;
&lt;P&gt;&amp;nbsp; validation is performed.&amp;nbsp; This method is called whenever a parameter&lt;/P&gt;
&lt;P&gt;&amp;nbsp; has been changed."""&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; def updateMessages(self, parameters):&lt;/P&gt;
&lt;P&gt;&amp;nbsp; """Modify the messages created by internal validation for each tool&lt;/P&gt;
&lt;P&gt;&amp;nbsp; parameter.&amp;nbsp; This method is called after internal validation."""&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; def execute(self, parameters, messages):&lt;/P&gt;
&lt;P&gt;&amp;nbsp; """The source code of the tool."""&lt;/P&gt;
&lt;P&gt;&amp;nbsp; arcpy.env.workspace =""&lt;/P&gt;
&lt;P&gt;&amp;nbsp; cursor = arcpy.da.UpdateCursor("Parameters", ['data_set'])&lt;/P&gt;
&lt;P&gt;&amp;nbsp; for row in cursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; row[0]=parameters[0].valueAsText&lt;/P&gt;
&lt;P&gt;&amp;nbsp; cursor.updateRow(row)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ds="-"+parameters[0].valueAsText&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; stp1=arcpy.mapping.Layer("direct_xfer_trips")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; stp2=arcpy.mapping.Layer("direct_trips")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; stp3=arcpy.mapping.Layer("xfer_trips")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; stp4=arcpy.mapping.Layer("xfer_pot")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; stp1.replaceDataSource("shape_files","SHAPEFILE_WORKSPACE","stops"+ds)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; stp2.replaceDataSource("shape_files","SHAPEFILE_WORKSPACE","stops"+ds)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; stp3.replaceDataSource("shape_files","SHAPEFILE_WORKSPACE","stops"+ds)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; stp4.replaceDataSource("shape_files","SHAPEFILE_WORKSPACE","stops"+ds)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; del mxd&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 10:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569579#M44639</guid>
      <dc:creator>YuvalHadas</dc:creator>
      <dc:date>2014-08-14T10:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I force a python toolbox to refresh?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569580#M44640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a way you can refresh a python toolbox:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/160547"&gt;Python toolbox doesn't want to refresh&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a good day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 15:23:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569580#M44640</guid>
      <dc:creator>CharlesGasse1</dc:creator>
      <dc:date>2015-06-16T15:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I force a python toolbox to refresh?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569581#M44641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The OP's question is referring to running a tool from ArcToolbox and my answer to your &lt;A _jive_internal="true" href="https://community.esri.com/thread/160547"&gt;question&lt;/A&gt; about running a tool from a Python Addin using the pythonaddins.GPToolDialog won't work here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 23:18:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569581#M44641</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2015-06-16T23:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I force a python toolbox to refresh?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569582#M44642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is... the 'getParameters' function only runs once -- when the toolbox is refreshed.&amp;nbsp; In order to do what you want without refreshing, you will need to use the 'updateParameters' functions, as &lt;A href="https://community.esri.com/migrated-users/3016"&gt;Jason Scheirer&lt;/A&gt;​ suggested.&amp;nbsp; This runs every time a parameter is updated. I'm not sure if it will run as soon as you open the tool.&amp;nbsp; If not, you could add another Boolean parameter that trigger the "Update from Table" and disable the parameter once the parameters have been updated.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 14:58:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-force-a-python-toolbox-to-refresh/m-p/569582#M44642</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2015-06-17T14:58:31Z</dc:date>
    </item>
  </channel>
</rss>

