<?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 call one script tool as many types as the input given by the user  in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292898#M22691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that this is a cross-post of &lt;A href="https://gis.stackexchange.com/questions/274520/running-one-python-toolbox-from-another-python-toolbox"&gt;three&lt;/A&gt;&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/274431/opening-ui-of-another-tool-from-one-tool-in-arcmap"&gt;additional&lt;/A&gt; &lt;A href="https://gis.stackexchange.com/questions/274555/calling-one-script-according-to-the-input-given-in-other-script"&gt;questions&lt;/A&gt; on GIS StackExchange, all of which were closed for lack of code. The best way to get help with code is to &lt;EM&gt;provide&lt;/EM&gt; code.&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2018 16:08:20 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2018-03-14T16:08:20Z</dc:date>
    <item>
      <title>how can i call one script tool as many types as the input given by the user</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292889#M22682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created two script files one script file will take user input as a number and i have another script which has to be run those many times the number given by user.Please help me with this?I have tried to call that scrip by using subprocess.Popen method but i am not getting any output.It is getting terminated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 17:24:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292889#M22682</guid>
      <dc:creator>sobhansai</dc:creator>
      <dc:date>2018-03-13T17:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: how can i call one script tool as many types as the input given by the user</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292890#M22683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The scripts would help to narrow down issues.&lt;/P&gt;&lt;P&gt;Why the need to run that way, when you can simply run a function (imported from another script/module) any number of times you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 18:49:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292890#M22683</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-03-13T18:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: how can i call one script tool as many types as the input given by the user</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292891#M22684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u please elloborate or provide any example.Actually these scripts are the toolbox scripts for the creation of tools in arcmap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 02:50:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292891#M22684</guid>
      <dc:creator>sobhansai</dc:creator>
      <dc:date>2018-03-14T02:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: how can i call one script tool as many types as the input given by the user</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292892#M22685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using PRO as the demo, but the principle is the same... in pictoral form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tool in action... allow the user to input many names into the toolbos&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/398787_toolbox_demo_01.png" style="width: 353px; height: 244px;" /&gt;&lt;/P&gt;&lt;P&gt;increment a counter, calling a function that is stored in the 'helper' script.&amp;nbsp; It worked&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image" height="204" src="https://community.esri.com/legacyfs/online/398788_toolbox_demo_02.png" width="351" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have to do.....&lt;/P&gt;&lt;P&gt;Assign a script to the tool&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/398789_toolbox_demo_03.png" style="width: 398px; height: 199px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set up the parameters... we have a single parameter that allows for multiple names to be input&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-4 jive-image" src="https://community.esri.com/legacyfs/online/398790_toolbox_demo_04.png" style="width: 517px; height: 251px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now everything... scripts and toolbox are stored in the same folder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/398791_toolbox_demo_05.png" style="width: 380px; height: 185px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice in line 16, I import a function from dummy_helper and use it to print some names with a counter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# -*- coding: UTF-8 -*-&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;"""
:Script:&amp;nbsp;&amp;nbsp; dummy_main.py
&lt;SPAN&gt;:Author:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Dan.Patterson@carleton.ca" rel="nofollow noopener noreferrer" target="_blank"&gt;Dan.Patterson@carleton.ca&lt;/A&gt;
:Modified: 2018-xx-xx
:Purpose:&amp;nbsp; tools for working with numpy arrays
:Useage:
:
:References:
:
:---------------------------------------------------------------------:
"""&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# ---- imports, formats, constants ----&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; sys
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; dummy_helper &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; dumb_demo

&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;tweet&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;msg&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"""Print a message for both arcpy and python.
&amp;nbsp;&amp;nbsp;&amp;nbsp; : msg - a text message
&amp;nbsp;&amp;nbsp;&amp;nbsp; """&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; m &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\n{}\n"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;msg&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;m&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;m&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;argv&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; testing &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; names &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Hello There'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'How are you'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Goodbye'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; names &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;argv&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;";"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; names &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; None&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tweet&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"no names"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
cnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; names&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cnt &lt;SPAN class="operator token"&gt;+=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; tweet&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dumb_demo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cnt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# ----------------------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# __main__ .... code section&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; __name__ &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"__main__"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"""Optionally...
&amp;nbsp;&amp;nbsp;&amp;nbsp; : - print the script source name.
&amp;nbsp;&amp;nbsp;&amp;nbsp; : - run the _demo
&amp;nbsp;&amp;nbsp;&amp;nbsp; """&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; print("Script... {}".format(script))&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the helper script.... now!!! I tend to use a helper script that contains functions that I use all the time, so you don't have to replicate them in every toolbox that you use.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# -*- coding: UTF-8 -*-&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;"""
:Script:&amp;nbsp;&amp;nbsp; dummy_helper.py
&lt;SPAN&gt;:Author:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Dan.Patterson@carleton.ca" rel="nofollow noopener noreferrer" target="_blank"&gt;Dan.Patterson@carleton.ca&lt;/A&gt;
:Modified: 2018-xx-xx
:Purpose:&amp;nbsp; tools for working with numpy arrays
:Useage:
:
:References:
:
:---------------------------------------------------------------------:
"""&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# ---- imports, formats, constants ----&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; sys

&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;dumb_demo&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cnt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"""
&amp;nbsp;&amp;nbsp;&amp;nbsp; : docs
&amp;nbsp;&amp;nbsp;&amp;nbsp; """&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"({}) {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cnt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# ----------------------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# __main__ .... code section&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; __name__ &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"__main__"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"""Optionally...
&amp;nbsp;&amp;nbsp;&amp;nbsp; : - print the script source name.
&amp;nbsp;&amp;nbsp;&amp;nbsp; : - run the _demo
&amp;nbsp;&amp;nbsp;&amp;nbsp; """&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; print("Script... {}".format(script))&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you get the drift.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:05:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292892#M22685</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T14:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: how can i call one script tool as many types as the input given by the user</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292893#M22686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your help sir.I have a Graphical User Interface in the second script also.Here in your script it is executing a function,but i also need to a call the GUI in the second Script.Please help us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 05:33:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292893#M22686</guid>
      <dc:creator>sobhansai</dc:creator>
      <dc:date>2018-03-14T05:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: how can i call one script tool as many types as the input given by the user</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292894#M22687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Code needed... and if you aren't using a GUI that plays nice with arcmap or pro, then you will have some problems.&lt;/P&gt;&lt;P&gt;I would advise against it and either use the standard toolbox approach or use python toolboxes.&lt;/P&gt;&lt;P&gt;the subprocess module would be an option in pro, but I don't know what you would gain.&lt;/P&gt;&lt;P&gt;Perhaps a full description of your desired workflow with the functional code would help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 09:38:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292894#M22687</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-03-14T09:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: how can i call one script tool as many types as the input given by the user</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292895#M22688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually we have designed the user Interface using script in arcmap toolbox(.tbx).So I am sending the screen shots and the code which has to be called many times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&lt;IMG alt="No of parameters needed and these many times the second UI need to be called " class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/398807_input1.JPG" style="width: 620px; height: 371px;" /&gt;&lt;IMG alt="Second UI which has to be run as many times the user needed" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/398808_input.JPG" style="width: 620px; height: 369px;" /&gt;&lt;/P&gt;&lt;P&gt;Input 1:It will take the number of parameters needed and this will be the count that the second image need to be called.&lt;/P&gt;&lt;P&gt;Input 2:It has to be executed, as per the input given in first UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Code for Second UI(ie second image)&lt;/P&gt;&lt;P&gt;# Import arcpy module&lt;BR /&gt;import arcpy&lt;/P&gt;&lt;P&gt;# Local variables:&lt;BR /&gt;filename = arcpy.GetParameterAsText(0)&lt;BR /&gt;Field = arcpy.GetParameterAsText(1)&lt;BR /&gt;Select = arcpy.GetParameterAsText(2)&lt;BR /&gt;max = arcpy.GetParameterAsText(3)&lt;BR /&gt;min = arcpy.GetParameterAsText(4)&lt;BR /&gt;expression = "getClass(!{0}!,{1},{2})".format(Select,min,max)&lt;BR /&gt;codeblock = """&lt;BR /&gt;def getClass(i, min, max):&lt;BR /&gt; a = 123&lt;BR /&gt; if (i&amp;gt;min and i&amp;lt;max):&lt;BR /&gt; return 1&lt;BR /&gt; return 0"""&lt;/P&gt;&lt;P&gt;# Process: Add Field&lt;BR /&gt;arcpy.AddField_management(filename, Field, "LONG", "", "", "", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;arcpy.CalculateField_management(filename, Field, expression, "PYTHON_9.3", codeblock)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 09:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292895#M22688</guid>
      <dc:creator>sobhansai</dc:creator>
      <dc:date>2018-03-14T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: how can i call one script tool as many types as the input given by the user</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292896#M22689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your second dialog will not run X times with different inputs for each loop.&lt;/P&gt;&lt;P&gt;You can make your parameters all multivalue and assemble the inputs prior to running. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure why your proposed workflow is any different that running the tool X times since you still have to provide the inputs.&lt;/P&gt;&lt;P&gt;I would suggest dumping your first dialog, so you can assemble the inputs, then run it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:06:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292896#M22689</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-03-14T15:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: how can i call one script tool as many types as the input given by the user</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292897#M22690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much sir.I need one more help is there any way to get the values for each file of the multiple files in the second script.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;if there are 3files:&lt;/P&gt;&lt;P&gt;for first files it has to take the values&lt;/P&gt;&lt;P&gt;and after that when the second file has been given as input it must take the other values.&lt;/P&gt;&lt;P&gt;and same for the third file also.&lt;/P&gt;&lt;P&gt;can u please help us with the logic or explain how to do it.&lt;/P&gt;&lt;P&gt;regards in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292897#M22690</guid>
      <dc:creator>sobhansai</dc:creator>
      <dc:date>2018-03-14T15:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: how can i call one script tool as many types as the input given by the user</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292898#M22691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that this is a cross-post of &lt;A href="https://gis.stackexchange.com/questions/274520/running-one-python-toolbox-from-another-python-toolbox"&gt;three&lt;/A&gt;&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/274431/opening-ui-of-another-tool-from-one-tool-in-arcmap"&gt;additional&lt;/A&gt; &lt;A href="https://gis.stackexchange.com/questions/274555/calling-one-script-according-to-the-input-given-in-other-script"&gt;questions&lt;/A&gt; on GIS StackExchange, all of which were closed for lack of code. The best way to get help with code is to &lt;EM&gt;provide&lt;/EM&gt; code.&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 16:08:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292898#M22691</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2018-03-14T16:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: how can i call one script tool as many types as the input given by the user</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292899#M22692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vince... could you kill this thread then, I have offered suggestions but no one else seems to have any&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:46:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292899#M22692</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-03-14T19:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: how can i call one script tool as many types as the input given by the user</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292900#M22693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your valuable time and suggestions sir.Bye.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 04:01:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-call-one-script-tool-as-many-types-as/m-p/292900#M22693</guid>
      <dc:creator>sobhansai</dc:creator>
      <dc:date>2018-03-15T04:01:15Z</dc:date>
    </item>
  </channel>
</rss>

