<?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 How to convert scripting to a tool (as ESRI ones with hammer)? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-convert-scripting-to-a-tool-as-esri-ones/m-p/651893#M50757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I develop a script with python and I link it with a wisual interface with Add/Script tool. all works without any problem&lt;/P&gt;&lt;P&gt;I have to share it as part of my work and for not to change the script I was wondering if there is a way to protect it like generating a tool as the Esri one (with the hammer icone)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help, Any Idea??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jan 2015 19:58:01 GMT</pubDate>
    <dc:creator>SaidAkif</dc:creator>
    <dc:date>2015-01-28T19:58:01Z</dc:date>
    <item>
      <title>How to convert scripting to a tool (as ESRI ones with hammer)?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-convert-scripting-to-a-tool-as-esri-ones/m-p/651893#M50757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I develop a script with python and I link it with a wisual interface with Add/Script tool. all works without any problem&lt;/P&gt;&lt;P&gt;I have to share it as part of my work and for not to change the script I was wondering if there is a way to protect it like generating a tool as the Esri one (with the hammer icone)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help, Any Idea??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 19:58:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-convert-scripting-to-a-tool-as-esri-ones/m-p/651893#M50757</guid>
      <dc:creator>SaidAkif</dc:creator>
      <dc:date>2015-01-28T19:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert scripting to a tool (as ESRI ones with hammer)?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-convert-scripting-to-a-tool-as-esri-ones/m-p/651894#M50758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once you have the script tool, you can get properties of it, click the source tab, and delete the file in the "Script File" box and click OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, if you don't want anyone to be able to get at the python of the script, right-click it in Catalog, and set password.&lt;/P&gt;&lt;P&gt;If you don't care about this, skip it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, right-click it in Catalog, and "Import Script" (If you set a password, you will need to enter it before it allows you to browse for script).&amp;nbsp; Browse to the script that "was" sourced to this tool, and import it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the tool/script is in the toolbox with the python code embedded in it, and doesn't need the .py file anymore, Can now be copy/pasted into other toolbox's as desired.&amp;nbsp; Also, this way it will allow you to add it to the UI Controls and actually put it as a tool on a toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 01:28:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-convert-scripting-to-a-tool-as-esri-ones/m-p/651894#M50758</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2015-01-29T01:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert scripting to a tool (as ESRI ones with hammer)?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-convert-scripting-to-a-tool-as-esri-ones/m-p/651895#M50759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you very much guys. It was really helpful. I was able to embed my python code in the tool and protect it with a password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two more small questions:&lt;/P&gt;&lt;P&gt;1- It is a way to make a tool in the same format as arcGIS tools (hammer Icon)&lt;/P&gt;&lt;P&gt;2- you mention Rhett that is is possible to add an arctoolbox (python script??) to a UI control. I try to do it (customize/commands/[UI Control]). unfortunatly, I did not see how to add my tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 15:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-convert-scripting-to-a-tool-as-esri-ones/m-p/651895#M50759</guid>
      <dc:creator>SaidAkif</dc:creator>
      <dc:date>2015-01-29T15:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert scripting to a tool (as ESRI ones with hammer)?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-convert-scripting-to-a-tool-as-esri-ones/m-p/651896#M50760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, forgot they might not call it UI Controls anymore.&lt;/P&gt;&lt;P&gt;I'm still in 10.0, so not sure what it is called in later versions, but:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right-click on a toolbar, go to the bottom and select Customize,&lt;/P&gt;&lt;P&gt;Click the "Commands:" tab&lt;/P&gt;&lt;P&gt;Scroll to the bottom of the Categories and select [ Geoprocessing Tools ]&lt;/P&gt;&lt;P&gt;Click the Add Tools... button&lt;/P&gt;&lt;P&gt;Browse to the toolbox and script tool that you created and select it.&lt;/P&gt;&lt;P&gt;It will now show up in the Commands: window&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="55847" alt="esri.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/55847_esri.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="55848" alt="esri2.jpg" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/55848_esri2.jpg" style="width: 620px; height: 371px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drag it to a toolbar, then you can right-click on it, Change Button Image, and select the hammer (or whatever icon you want).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that if you make any changes to the script tool, you will need to remove it from the Geoprocessing tools list and the toolbar, re-import the changes to the tool, then re-add it to the Commands: window and the toolbar or the changes won't take effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 15:20:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-convert-scripting-to-a-tool-as-esri-ones/m-p/651896#M50760</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2015-01-29T15:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert scripting to a tool (as ESRI ones with hammer)?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-convert-scripting-to-a-tool-as-esri-ones/m-p/651897#M50761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 13:41:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-convert-scripting-to-a-tool-as-esri-ones/m-p/651897#M50761</guid>
      <dc:creator>SaidAkif</dc:creator>
      <dc:date>2015-01-30T13:41:32Z</dc:date>
    </item>
  </channel>
</rss>

