<?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: Skip Python Parameter Window? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198696#M15288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But what if the goal was to invoke the script from within arc catalog or ARCMap ?&amp;nbsp; (Creating a button that I can just click on to run the outside executable).&amp;nbsp; Outside the arcgis software, double clicking the .py that runs the exe works just fine.&amp;nbsp; No parameter bx popping up. However, once you try to run the py from inside arcgis, a user is then forced to click ok in the parameter box just to run the outside script. Really want to bypass the parameter window (since no parameters exist in order to run the exe). Just FYI, I made 1 required parameter using a default text which basically just said "Click OK to run the program."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 01:44:34 GMT</pubDate>
    <dc:creator>JohnBocchino</dc:creator>
    <dc:date>2013-08-22T01:44:34Z</dc:date>
    <item>
      <title>Skip Python Parameter Window?</title>
      <link>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198691#M15283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was just curious if there is a way to get python scripts run out of Arctoolbox to skip the parameter input window for scripts which don't need input parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have several scripts that run updates based on known layers, so they don't need any inputs or outputs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? (besides going through VB/other programming language)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 13:43:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198691#M15283</guid>
      <dc:creator>JeremyLuymes</dc:creator>
      <dc:date>2012-02-01T13:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Python Parameter Window?</title>
      <link>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198692#M15284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Couldn't you run them from PythonWin? Or even IDLE?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 17:50:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198692#M15284</guid>
      <dc:creator>JakeDiebolt</dc:creator>
      <dc:date>2012-02-01T17:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Python Parameter Window?</title>
      <link>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198693#M15285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Couldn't you run them from PythonWin? Or even IDLE?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or from the command line shell prompt?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 18:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198693#M15285</guid>
      <dc:creator>BruceNielsen</dc:creator>
      <dc:date>2012-02-01T18:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Python Parameter Window?</title>
      <link>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198694#M15286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Or just define the defaults in the toolbox, so the user can hit OK&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 18:47:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198694#M15286</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2012-02-01T18:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Python Parameter Window?</title>
      <link>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198695#M15287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I was just curious if there is a way to get python scripts run out of Arctoolbox to skip the parameter input window for scripts which don't need input parameters.&lt;BR /&gt;&lt;BR /&gt;I have several scripts that run updates based on known layers, so they don't need any inputs or outputs. &lt;BR /&gt;&lt;BR /&gt;Any ideas? (besides going through VB/other programming language)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't need to supply parameters for the script to run. The .py file should run fine just from a system command prompt if there are no parameters or environments the script requires to run correctly. .py and .pyc files are set up to run in Windows, so you can just crank them up using a command window, windows explorer (double-click) or Task Scheduler.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 22:16:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198695#M15287</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-02-01T22:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Python Parameter Window?</title>
      <link>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198696#M15288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But what if the goal was to invoke the script from within arc catalog or ARCMap ?&amp;nbsp; (Creating a button that I can just click on to run the outside executable).&amp;nbsp; Outside the arcgis software, double clicking the .py that runs the exe works just fine.&amp;nbsp; No parameter bx popping up. However, once you try to run the py from inside arcgis, a user is then forced to click ok in the parameter box just to run the outside script. Really want to bypass the parameter window (since no parameters exist in order to run the exe). Just FYI, I made 1 required parameter using a default text which basically just said "Click OK to run the program."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 01:44:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198696#M15288</guid>
      <dc:creator>JohnBocchino</dc:creator>
      <dc:date>2013-08-22T01:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Python Parameter Window?</title>
      <link>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198697#M15289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just define no parameters for the tool. Then if you add it to the menus using Customise.. you can add the tool as a button. Executing the button will not popup if there are no parameters.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 01:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198697#M15289</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2013-08-22T01:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Python Parameter Window?</title>
      <link>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198698#M15290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Making a python add-in to run from a button, or just adding the scipt as a button through the Customize interface is the way to do what you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The conceptual being of toolbox tools requires that parameter or OK stage. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can't make the lepoard change its spots, and it is wrong to try....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 14:04:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198698#M15290</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2013-08-22T14:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Python Parameter Window?</title>
      <link>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198699#M15291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can't make the lepoard change its spots&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's why (I believe): Geoprocessing tools are designed to run asynchronously controlled through messaging so they can run from a server or locally with no modification.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I just define no parameters for the tool. Then if you add it to the menus using Customise.. you can add the tool as a button. Executing the button will not popup if there are no parameters.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kewl. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you do have parameters and they don't change, then you could create a model tool with the parameters filled out and drop that into your interface as a button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;nbsp; Just FYI, I made 1 required parameter using a default text which basically just said "Click OK to run the program."&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John, I think a more effective way to do this would be to place the instructions in the tool "Summary" (in the Item Description editor) so it would appear at right in the tool dialog if your tool was launched that way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 16:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/skip-python-parameter-window/m-p/198699#M15291</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-08-22T16:38:51Z</dc:date>
    </item>
  </channel>
</rss>

