<?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: Script tool button portability problem in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/script-tool-button-portability-problem/m-p/491580#M38516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone else have any insights?&amp;nbsp; Is this a bug or am I missing some setting?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 May 2014 13:38:08 GMT</pubDate>
    <dc:creator>LT</dc:creator>
    <dc:date>2014-05-11T13:38:08Z</dc:date>
    <item>
      <title>Script tool button portability problem</title>
      <link>https://community.esri.com/t5/python-questions/script-tool-button-portability-problem/m-p/491577#M38513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you may know, you can create a handy button on an ArcMap toolbar to launch a script tool, use the following steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Select 'Customize' &amp;gt; 'Customize mode???'&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Select the 'Commands' tab&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Under 'Categories', scroll down to select '[Geoprocessing tool]'&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Select 'Add Tools???'&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Browse to the custom toolbox &amp;gt; Select the script tool in toolbox &amp;gt; Select 'Add'. The script tool appears under 'Commands'.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Click on the script tool under 'Commands' and, holding the left mouse key down, drag the script tool between any existing buttons on any ArcMap toolbar. A black vertical bar appears when you're in between buttons in a position where the new button can be placed. Release the mouse button to drop it into position.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Before closing the 'Customize' dialog, right-click on the tool in the toolbar to display text and image menu and modify these as desired.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Click 'Close' on the 'Customize' dialog to save changes.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;But the problem is, it does work if you move the map document (and toolbox and Python script to still maintain the relative location of the toolbox and Python script).&amp;nbsp; My question is,&amp;nbsp; is there a way to set it up for portability?&amp;nbsp;&amp;nbsp; I.e., have the button use a relative path to the script tool?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2014 10:35:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-tool-button-portability-problem/m-p/491577#M38513</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2014-04-27T10:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script tool button portability problem</title>
      <link>https://community.esri.com/t5/python-questions/script-tool-button-portability-problem/m-p/491578#M38514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The customisation will be saved into the map document (.mxd) so ensure that the 'Store Relative Path Names' checkbox is turned on from the File&amp;gt;Map Document Properties and the document is saved again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 01:42:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-tool-button-portability-problem/m-p/491578#M38514</guid>
      <dc:creator>TimBarnes</dc:creator>
      <dc:date>2014-04-28T01:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script tool button portability problem</title>
      <link>https://community.esri.com/t5/python-questions/script-tool-button-portability-problem/m-p/491579#M38515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tim,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the response, but that is not the problem.&amp;nbsp; I have tested that, as well as checking 'save all customizations to the document' inside customize mode &amp;gt; options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know a solution?&amp;nbsp; This makes the button entirely useless for sharing unless you're able to set it up on the other person's machine for them.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 20:05:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-tool-button-portability-problem/m-p/491579#M38515</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2014-05-01T20:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script tool button portability problem</title>
      <link>https://community.esri.com/t5/python-questions/script-tool-button-portability-problem/m-p/491580#M38516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone else have any insights?&amp;nbsp; Is this a bug or am I missing some setting?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 13:38:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-tool-button-portability-problem/m-p/491580#M38516</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2014-05-11T13:38:08Z</dc:date>
    </item>
  </channel>
</rss>

