<?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 Creating a tool from a pyton script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/creating-a-tool-from-a-pyton-script/m-p/748701#M57861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey everyone, I have a question that seems to stumping me currently (I can't find anything in the help).&amp;nbsp; I have created a custom pyton script that will generate sample plots on a polygon and also buffer the resultant points inside the boundary of the polygon (thus creating a grid and plot radius that can be added to a GPS).&amp;nbsp; I would like to create a button on the tool bar that will automatically launch the python script (tool) for our foresters, let them add in the layer and run the script.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I originally made this tool in model builder, but exported it to python (I am not a python expert).&amp;nbsp; Can anyone walk me though the process on how to create a .dll file from the python script so I can add it on the tool bar?&amp;nbsp; If there is a help article out there simply point me in the right direction and I can go from there...&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2011 20:40:34 GMT</pubDate>
    <dc:creator>EdPoole</dc:creator>
    <dc:date>2011-09-13T20:40:34Z</dc:date>
    <item>
      <title>Creating a tool from a pyton script</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-tool-from-a-pyton-script/m-p/748701#M57861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey everyone, I have a question that seems to stumping me currently (I can't find anything in the help).&amp;nbsp; I have created a custom pyton script that will generate sample plots on a polygon and also buffer the resultant points inside the boundary of the polygon (thus creating a grid and plot radius that can be added to a GPS).&amp;nbsp; I would like to create a button on the tool bar that will automatically launch the python script (tool) for our foresters, let them add in the layer and run the script.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I originally made this tool in model builder, but exported it to python (I am not a python expert).&amp;nbsp; Can anyone walk me though the process on how to create a .dll file from the python script so I can add it on the tool bar?&amp;nbsp; If there is a help article out there simply point me in the right direction and I can go from there...&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 20:40:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-tool-from-a-pyton-script/m-p/748701#M57861</guid>
      <dc:creator>EdPoole</dc:creator>
      <dc:date>2011-09-13T20:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a tool from a pyton script</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-tool-from-a-pyton-script/m-p/748702#M57862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using ArcGIS 10?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, the easiest solution is to either use your model directly or create a python script tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Either of these can be added to ArcMap as a button.&amp;nbsp; Just make sure that on your model your input layer is set as a parameter or that your python script tool is set up to get an input parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;To create a script tool from a python script:&lt;/STRONG&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/A_quick_tour_of_creating_script_tools/001500000006000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/A_quick_tour_of_creating_script_tools/001500000006000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;To add your model or python script tool to ArcMap:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Open the "Customize" dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Select the "Commands" tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Scroll to the bottom of the commands and select [Geoprocessing Tools].&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Click the new "Add Tools..." button that appears below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) Navigate to your model or python script tool and click the "Add" button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6) Your model or script tool should show up in the right pane of the "Commands" tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7) Drag your model or script tool onto the ArcMap taskbar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; Close the "Customize" dialog&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;9) Click on the newly added button to lauch your program&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are not using ArcGIS 10, I'm not sure how this can easily be accomplished.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Joel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 22:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-tool-from-a-pyton-script/m-p/748702#M57862</guid>
      <dc:creator>JoelCalhoun</dc:creator>
      <dc:date>2011-09-13T22:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a tool from a pyton script</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-tool-from-a-pyton-script/m-p/748703#M57863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcGIS 10.&amp;nbsp; I have already set up the parameters and tested on another box and the script works.&amp;nbsp; I am looking for an easy drag and drop option (which it seems you have provided), for our field staff our foresters have very little experience with ArcGIS or GIS period.&amp;nbsp; You would be surprised how little forestry students are exposed to ArcGIS these days.&amp;nbsp; I took 2 classes in undergrad and one in grad school, some of these kids barely know how to start the program!&amp;nbsp; Thanks for your assistance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 12:04:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-tool-from-a-pyton-script/m-p/748703#M57863</guid>
      <dc:creator>EdPoole</dc:creator>
      <dc:date>2011-09-14T12:04:36Z</dc:date>
    </item>
  </channel>
</rss>

