<?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 Python Addins: Use 'Select Feature' tool with Python Addin? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-addins-use-select-feature-tool-with-python/m-p/701824#M54383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a script that uses a arcpy's 'SelectByAttribute' syntax to choose a record in a polygon feature class. Following that, I do a 'SelectbyLocation' to select points from a feature class that lie within the &lt;/SPAN&gt;&lt;STRONG&gt;selected&lt;/STRONG&gt;&lt;SPAN&gt; polygon. I do some processing on the points afterwards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to know is, can I somehow use the 'Select Features' tool from the 'Tools' toolbar to select the polygon and then use that selection to pass into a python addin button instead of using the 'SelectByAttribute' noted above? I hope this makes sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2012 18:21:24 GMT</pubDate>
    <dc:creator>MikeMacRae</dc:creator>
    <dc:date>2012-07-31T18:21:24Z</dc:date>
    <item>
      <title>Python Addins: Use 'Select Feature' tool with Python Addin?</title>
      <link>https://community.esri.com/t5/python-questions/python-addins-use-select-feature-tool-with-python/m-p/701824#M54383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a script that uses a arcpy's 'SelectByAttribute' syntax to choose a record in a polygon feature class. Following that, I do a 'SelectbyLocation' to select points from a feature class that lie within the &lt;/SPAN&gt;&lt;STRONG&gt;selected&lt;/STRONG&gt;&lt;SPAN&gt; polygon. I do some processing on the points afterwards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to know is, can I somehow use the 'Select Features' tool from the 'Tools' toolbar to select the polygon and then use that selection to pass into a python addin button instead of using the 'SelectByAttribute' noted above? I hope this makes sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 18:21:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-addins-use-select-feature-tool-with-python/m-p/701824#M54383</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2012-07-31T18:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Python Addins: Use 'Select Feature' tool with Python Addin?</title>
      <link>https://community.esri.com/t5/python-questions/python-addins-use-select-feature-tool-with-python/m-p/701825#M54384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I think you are asking is if you can use selections made interactively in arcmap and pass those to the tool. The answer should be yes as long as you reference the layer with the selection in your tool. I haven't jumped in to addins for 10.1 myself yet but you can achieve this functionality with a regular script tool so I assume the same would hold for the new version.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 18:30:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-addins-use-select-feature-tool-with-python/m-p/701825#M54384</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-07-31T18:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python Addins: Use 'Select Feature' tool with Python Addin?</title>
      <link>https://community.esri.com/t5/python-questions/python-addins-use-select-feature-tool-with-python/m-p/701826#M54385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Matt. Do you know of any help menu topics that can show how to do it with a regular tool?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 18:40:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-addins-use-select-feature-tool-with-python/m-p/701826#M54385</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2012-07-31T18:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Python Addins: Use 'Select Feature' tool with Python Addin?</title>
      <link>https://community.esri.com/t5/python-questions/python-addins-use-select-feature-tool-with-python/m-p/701827#M54386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey, I discovered that if you set by MapDocument to "CURRENT" in the python add in script, and manually select a polygon, the script honors the selection in the map. I commented out the 'SelectByAttribute' syntax and clicked my new python button and it worked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 20:20:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-addins-use-select-feature-tool-with-python/m-p/701827#M54386</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2012-07-31T20:20:06Z</dc:date>
    </item>
  </channel>
</rss>

