<?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: ArcGIS 10.1 python add-in usage of arcpy.GetParameterAsText in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-10-1-python-add-in-usage-of-arcpy/m-p/480709#M37603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Setup a python script in a toolbox, then call the script using &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;pythonaddins.GPToolDialog(toolboxname, scriptname) &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2013 21:30:02 GMT</pubDate>
    <dc:creator>JonPedder</dc:creator>
    <dc:date>2013-02-27T21:30:02Z</dc:date>
    <item>
      <title>ArcGIS 10.1 python add-in usage of arcpy.GetParameterAsText</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-1-python-add-in-usage-of-arcpy/m-p/480705#M37599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello to everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is it possible to use arcpy.GetParameterAsText() for User Input e.g. for a table or a name of a featureclass?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; def onClick(self): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Script arguments &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import_file = arcpy.GetParameterAsText(0)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tab_gdb = arcpy.GetParameterAsText(1)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tab_mxd = arcpy.GetParameterAsText(2)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Local variables: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ausgabetabelle = import_file &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Geodatenbank = env.workspace&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Tabelle in Tabelle &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.TableToTable_conversion(import_file, Geodatenbank, tab_gdb, "", "", "")&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Tabellensicht erstellen &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeTableView_management(Ausgabetabelle, tab_mxd, "", "", "") &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my code I already wrote. But it doesn't open an window for value input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks alot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;krank42&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 17:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-1-python-add-in-usage-of-arcpy/m-p/480705#M37599</guid>
      <dc:creator>KarstenRank</dc:creator>
      <dc:date>2013-02-26T17:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.1 python add-in usage of arcpy.GetParameterAsText</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-1-python-add-in-usage-of-arcpy/m-p/480706#M37600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You will need to use the pythonaddins module with the OpenDialog or SaveDialog.&amp;nbsp; You can then pass that input to your tool.&amp;nbsp; Check out this blog which will give you an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/supportcenter/2012/12/11/getting-results-from-your-python-add-in-buttons/"&gt;Getting Results from Your Python Add-in Buttons&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 20:41:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-1-python-add-in-usage-of-arcpy/m-p/480706#M37600</guid>
      <dc:creator>TimothyHales</dc:creator>
      <dc:date>2013-02-26T20:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.1 python add-in usage of arcpy.GetParameterAsText</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-1-python-add-in-usage-of-arcpy/m-p/480707#M37601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For open files this works fine. But is it possible to ask for a parameter in a dialog box?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 17:17:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-1-python-add-in-usage-of-arcpy/m-p/480707#M37601</guid>
      <dc:creator>KarstenRank</dc:creator>
      <dc:date>2013-02-27T17:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.1 python add-in usage of arcpy.GetParameterAsText</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-1-python-add-in-usage-of-arcpy/m-p/480708#M37602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how about &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import_file = raw_input("Enter file for input:&amp;nbsp; ")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 17:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-1-python-add-in-usage-of-arcpy/m-p/480708#M37602</guid>
      <dc:creator>JimCousins</dc:creator>
      <dc:date>2013-02-27T17:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.1 python add-in usage of arcpy.GetParameterAsText</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-1-python-add-in-usage-of-arcpy/m-p/480709#M37603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Setup a python script in a toolbox, then call the script using &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;pythonaddins.GPToolDialog(toolboxname, scriptname) &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 21:30:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-1-python-add-in-usage-of-arcpy/m-p/480709#M37603</guid>
      <dc:creator>JonPedder</dc:creator>
      <dc:date>2013-02-27T21:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.1 python add-in usage of arcpy.GetParameterAsText</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-1-python-add-in-usage-of-arcpy/m-p/480710#M37604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried the raw_input but it doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Writing a python script in a toolbox would be the easiest way, but I don't know the place of the toolbox. The addin is for my organization and there is no standard place for the toolboxes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 17:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-1-python-add-in-usage-of-arcpy/m-p/480710#M37604</guid>
      <dc:creator>KarstenRank</dc:creator>
      <dc:date>2013-02-28T17:02:33Z</dc:date>
    </item>
  </channel>
</rss>

