<?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: ModelBuilder &amp;amp; Its Exported Python Script in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-amp-amp-its-exported-python-script/m-p/775121#M1516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I should state that enter some values as variables. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did another test that set workspace as a parameter.&amp;nbsp; It works in Desktop application.&amp;nbsp; But when the tool is published as a geoprocessing tool, this parameter is filter out.&amp;nbsp; Did you experience like that if you have work on Server geoprocessing tools?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2013 16:39:01 GMT</pubDate>
    <dc:creator>ShaningYu</dc:creator>
    <dc:date>2013-08-14T16:39:01Z</dc:date>
    <item>
      <title>ModelBuilder &amp;amp; Its Exported Python Script</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-amp-amp-its-exported-python-script/m-p/775117#M1512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tested ModelBuilder and Python scripts in such 2 scenarios.&amp;nbsp; The results are posted below.&amp;nbsp; Hopefully you can help me for some questions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scenario One:&amp;nbsp; No parameter in ModelBuilder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1)&amp;nbsp; Run the ModelBuilder - Successful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2)&amp;nbsp; Run the script exported from the ModelBuilder in PythinWin - Successful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3)&amp;nbsp; Run the Script tool that sources from the python script in 2) in Catalog - Successful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scenario Two:&amp;nbsp; With parameter in ModelBuilder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1)&amp;nbsp; Run the ModelBuilder - Successful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2)&amp;nbsp; Run the script exported from the ModelBuilder in PythinWin - Failed and no parameter input boxes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3)&amp;nbsp; Run the Script tool that sources from the python script in 2) in Catalog - Failed and no parameter input boxes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The results impress me that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1)&amp;nbsp; The scripts from the ModelBuilder with parameters do not work well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2)&amp;nbsp; To setup the parameters in python scripts, related python's syntax has to be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is my understanding correct?&amp;nbsp; Please feedback me your experience.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 15:02:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-amp-amp-its-exported-python-script/m-p/775117#M1512</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2013-08-14T15:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder &amp; Its Exported Python Script</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-amp-amp-its-exported-python-script/m-p/775118#M1513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shaning,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your assumption that parameters in scripts not working is correct.&amp;nbsp; To address this, after exporting scripts from ModelBuilder, I usually go back through and all parameters using &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001500000028000000"&gt;this resource page&lt;/A&gt;&lt;SPAN&gt; as a template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice how the parameters have object fields which allow you to specify the type of parameter and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still need to learn a great bit of Python, but like you, I still use ModelBuilder as a starting point, then usually customize and cleanup the scripts later.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 16:18:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-amp-amp-its-exported-python-script/m-p/775118#M1513</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2013-08-14T16:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder &amp; Its Exported Python Script</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-amp-amp-its-exported-python-script/m-p/775119#M1514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You are right.&amp;nbsp; I just did another test as described below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Run the script of the ESRI's MultiRingBuffer tool (\Analysis Tool\Proximate) in Python.&amp;nbsp; No parameter boxes display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Check the ESRI's MultiRingBuffer tool and observed that the Parameters are set in the Properties wizard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, it appears that there is no advantage to use python script for dynamic inputs.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your feedback.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yours,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shaning&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 16:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-amp-amp-its-exported-python-script/m-p/775119#M1514</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2013-08-14T16:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder &amp; Its Exported Python Script</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-amp-amp-its-exported-python-script/m-p/775120#M1515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What do you mean by "dynamic inputs"?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 16:34:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-amp-amp-its-exported-python-script/m-p/775120#M1515</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-08-14T16:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder &amp; Its Exported Python Script</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-amp-amp-its-exported-python-script/m-p/775121#M1516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I should state that enter some values as variables. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did another test that set workspace as a parameter.&amp;nbsp; It works in Desktop application.&amp;nbsp; But when the tool is published as a geoprocessing tool, this parameter is filter out.&amp;nbsp; Did you experience like that if you have work on Server geoprocessing tools?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 16:39:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-amp-amp-its-exported-python-script/m-p/775121#M1516</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2013-08-14T16:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder &amp; Its Exported Python Script</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-amp-amp-its-exported-python-script/m-p/775122#M1517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I only have 1 ArcGIS Server script where I update caches from a Scheduled Task.&amp;nbsp; It is not a published geoprocessing tool.&amp;nbsp; I have a bat file that calls a python script where parameters for the python script are read in from a config file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 17:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-amp-amp-its-exported-python-script/m-p/775122#M1517</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-08-14T17:04:37Z</dc:date>
    </item>
  </channel>
</rss>

