<?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: Model Builder - &amp;quot;Tool has no parameters&amp;quot; in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/model-builder-amp-quot-tool-has-no-parameters-amp/m-p/347985#M27295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you developed a script, and you have hard-coded all the parameters like the path to the data, the attribute to populate....then you can click OK and the script will run.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Dec 2013 17:51:02 GMT</pubDate>
    <dc:creator>GerryGabrisch</dc:creator>
    <dc:date>2013-12-06T17:51:02Z</dc:date>
    <item>
      <title>Model Builder - &amp;quot;Tool has no parameters&amp;quot;</title>
      <link>https://community.esri.com/t5/python-questions/model-builder-amp-quot-tool-has-no-parameters-amp/m-p/347984#M27294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just imported a script that I want to use in my model however when I import the script into modelbuilder I keep getting the message "This tool has no parameters." &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this maybe a fairly obvious question but what does this mean? And why is this preventing me using the script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI: The script is to calculate acreage for a field I created. I know some of the parameters I want to set the 'Type' = Double, 'Precision'=9 &amp;amp; 'Scale' =2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sure I am probably missing the obvious but any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 15:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/model-builder-amp-quot-tool-has-no-parameters-amp/m-p/347984#M27294</guid>
      <dc:creator>Lebowski</dc:creator>
      <dc:date>2013-12-06T15:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - "Tool has no parameters"</title>
      <link>https://community.esri.com/t5/python-questions/model-builder-amp-quot-tool-has-no-parameters-amp/m-p/347985#M27295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you developed a script, and you have hard-coded all the parameters like the path to the data, the attribute to populate....then you can click OK and the script will run.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 17:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/model-builder-amp-quot-tool-has-no-parameters-amp/m-p/347985#M27295</guid>
      <dc:creator>GerryGabrisch</dc:creator>
      <dc:date>2013-12-06T17:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - "Tool has no parameters"</title>
      <link>https://community.esri.com/t5/python-questions/model-builder-amp-quot-tool-has-no-parameters-amp/m-p/347986#M27296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Scripts and models can have the parameters coded into them which will give you that message.&amp;nbsp; Don't you see an OK button on the bottom, and if so, what happens when you click it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 17:54:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/model-builder-amp-quot-tool-has-no-parameters-amp/m-p/347986#M27296</guid>
      <dc:creator>GerryGabrisch</dc:creator>
      <dc:date>2013-12-06T17:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - "Tool has no parameters"</title>
      <link>https://community.esri.com/t5/python-questions/model-builder-amp-quot-tool-has-no-parameters-amp/m-p/347987#M27297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I just imported a script that I want to use in my model however when I import the script into modelbuilder I keep getting the message "This tool has no parameters." &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to expose the parameters of a script to model builder you will need to define the parameters of the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using a python script tool you will need to right click the script (in arccatalog) and select the properties context menu item.&amp;nbsp; Then you can go to the parameters tab where you will have to define the parameter names and types in order for them to be recognizable by the arcgis environment.&amp;nbsp; In the script, there also must be parameters that are ready to be exposed in the arcgis environment.&amp;nbsp; that is, you will need to ensure that there are input and output parameters (if required) that are defined similar to&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;input = arcpy.GetParameterAsString(0)
output = arcpy.SetParameter(1)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that you will need to have a parameter that corresponds to these script parameters defined the scripts properties page for parameters in order for it to function correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using a custom geoprocessing tool written in arcobjects you may have to register externally created libraries using the EsriRegAsm.exe &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000004n6000000" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000004n6000000&lt;/A&gt;&lt;SPAN&gt; and ensure any configurations and prerequisites are available to the application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you provide more detail about your script or the script itself I may be able to offer more insight.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:23:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/model-builder-amp-quot-tool-has-no-parameters-amp/m-p/347987#M27297</guid>
      <dc:creator>MaxSquires</dc:creator>
      <dc:date>2021-12-11T16:23:06Z</dc:date>
    </item>
  </channel>
</rss>

