<?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: access measure tool for python add in in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/access-measure-tool-for-python-add-in/m-p/488995#M38258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much Jason!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2012 18:10:48 GMT</pubDate>
    <dc:creator>bogdanpalade1</dc:creator>
    <dc:date>2012-10-10T18:10:48Z</dc:date>
    <item>
      <title>access measure tool for python add in</title>
      <link>https://community.esri.com/t5/python-questions/access-measure-tool-for-python-add-in/m-p/488993#M38256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to make a python Add In that would be a toolbar containing one "measure" button among other stuff. Can you please tell me how is the implementation of the onClick method to measure things in ArcMap interface?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked it up in the internet and esri help files but I always find the same examples, i.e. zoom to selected feature or extract by some extent. Nothing on measure tool. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you a lot&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 17:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/access-measure-tool-for-python-add-in/m-p/488993#M38256</guid>
      <dc:creator>bogdanpalade1</dc:creator>
      <dc:date>2012-10-10T17:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: access measure tool for python add in</title>
      <link>https://community.esri.com/t5/python-questions/access-measure-tool-for-python-add-in/m-p/488994#M38257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'd probably want to implement a tool with the onLine method defined, not a simple button. So something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;class MyTool(object):
&amp;nbsp;&amp;nbsp; def __init__(self):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.shape = 'Line'
&amp;nbsp;&amp;nbsp; def onLine(self, line_object):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line_length = line_object.length
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # do something with line_length&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:31:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/access-measure-tool-for-python-add-in/m-p/488994#M38257</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2021-12-11T21:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: access measure tool for python add in</title>
      <link>https://community.esri.com/t5/python-questions/access-measure-tool-for-python-add-in/m-p/488995#M38258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much Jason!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 18:10:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/access-measure-tool-for-python-add-in/m-p/488995#M38258</guid>
      <dc:creator>bogdanpalade1</dc:creator>
      <dc:date>2012-10-10T18:10:48Z</dc:date>
    </item>
  </channel>
</rss>

