<?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: Can a python add-in button activate a tool? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/can-a-python-add-in-button-activate-a-tool/m-p/523069#M41006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freddie,&lt;/P&gt;&lt;P&gt;Thanks for your response. The issue was that I wanted some initialisation code to run at the point the tool was activated (prior to map interaction). A button enables code to run when it is clicked. A tool does not. Hence I was trying to activate the tool from the button (after the onclick code had run).&lt;/P&gt;&lt;P&gt;I've since moved to alternative methods, but I'd be interested in any solution, for the future!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Sep 2015 17:15:34 GMT</pubDate>
    <dc:creator>DavidMartin</dc:creator>
    <dc:date>2015-09-15T17:15:34Z</dc:date>
    <item>
      <title>Can a python add-in button activate a tool?</title>
      <link>https://community.esri.com/t5/python-questions/can-a-python-add-in-button-activate-a-tool/m-p/523067#M41004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone tell me how to activate a python add-in tool? When I say "activate", I mean make it the currently active tool for the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I'm wanting to do this is so that I can have some code run every time the user clicks on a tool, but then immediately allow them to start drawing on the map. At present, I can only achieve this by having them first click on a button (which will appear to the user to be doing nothing), and then click on the tool so that they can start drawing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 12:46:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-a-python-add-in-button-activate-a-tool/m-p/523067#M41004</guid>
      <dc:creator>DavidMartin</dc:creator>
      <dc:date>2015-02-13T12:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can a python add-in button activate a tool?</title>
      <link>https://community.esri.com/t5/python-questions/can-a-python-add-in-button-activate-a-tool/m-p/523068#M41005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if you still have this question, but the tool from the Python Addin should become the active tool when you click on it. You shouldn't need a button to activate it. Are you still having this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 22:49:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-a-python-add-in-button-activate-a-tool/m-p/523068#M41005</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-09-01T22:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can a python add-in button activate a tool?</title>
      <link>https://community.esri.com/t5/python-questions/can-a-python-add-in-button-activate-a-tool/m-p/523069#M41006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freddie,&lt;/P&gt;&lt;P&gt;Thanks for your response. The issue was that I wanted some initialisation code to run at the point the tool was activated (prior to map interaction). A button enables code to run when it is clicked. A tool does not. Hence I was trying to activate the tool from the button (after the onclick code had run).&lt;/P&gt;&lt;P&gt;I've since moved to alternative methods, but I'd be interested in any solution, for the future!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 17:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-a-python-add-in-button-activate-a-tool/m-p/523069#M41006</guid>
      <dc:creator>DavidMartin</dc:creator>
      <dc:date>2015-09-15T17:15:34Z</dc:date>
    </item>
  </channel>
</rss>

