<?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 Is there a way to interact in a python script with manually selected feature ? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-there-a-way-to-interact-in-a-python-script-with/m-p/295773#M22860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to repeat hundreds of time the operation of selecting manually some points in a layer (can't make a script for that as the selection is not depending on location or attribute), and then save those points into a new layer, adding them a row and entering a value.&lt;/P&gt;&lt;P&gt;I tried to script it but it seams that the "apply to selected feature" in a python script only works for "in-script" previously selected feature and not for manually in map selected ones.&lt;/P&gt;&lt;P&gt;I also tried to add an add-in button, but at this point, I am totally unable to reach the goal.&lt;/P&gt;&lt;P&gt;At least I would like to be able to automatically save the selected points as a new layer in the database, without having to do everything "by-hand" as this operation will be repeated hundreds of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your interest,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Oct 2016 07:36:01 GMT</pubDate>
    <dc:creator>VictorGuillot</dc:creator>
    <dc:date>2016-10-24T07:36:01Z</dc:date>
    <item>
      <title>Is there a way to interact in a python script with manually selected feature ?</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-way-to-interact-in-a-python-script-with/m-p/295773#M22860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to repeat hundreds of time the operation of selecting manually some points in a layer (can't make a script for that as the selection is not depending on location or attribute), and then save those points into a new layer, adding them a row and entering a value.&lt;/P&gt;&lt;P&gt;I tried to script it but it seams that the "apply to selected feature" in a python script only works for "in-script" previously selected feature and not for manually in map selected ones.&lt;/P&gt;&lt;P&gt;I also tried to add an add-in button, but at this point, I am totally unable to reach the goal.&lt;/P&gt;&lt;P&gt;At least I would like to be able to automatically save the selected points as a new layer in the database, without having to do everything "by-hand" as this operation will be repeated hundreds of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your interest,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 07:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-way-to-interact-in-a-python-script-with/m-p/295773#M22860</guid>
      <dc:creator>VictorGuillot</dc:creator>
      <dc:date>2016-10-24T07:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to interact in a python script with manually selected feature ?</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-way-to-interact-in-a-python-script-with/m-p/295774#M22861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you want&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/creating-an-add-in-tool.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/creating-an-add-in-tool.htm"&gt;Creating a Python add-in tool—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Knowing when to create a Python add-in&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If it is required to make a customization that performs an action in response to an event, or requires the use of the mouse to interact with the display, you should consider making an add-in. An example is a tool that requires the user to click and drag a rectangle over a map to define an area of interest. Another example is an application extension that saves the map document automatically anytime a layer is added or removed from the table of content&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out some existing ones (not all may be interactive )&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://codesharing.arcgis.com/#search%3D%7Csoftware%3DAll%20Esri%20Software%7Clanguage%3DAll%20Languages%7CresultType%3D(type%3A%22code%20samples%22%20OR%20type%3A%22add-ins%22%20OR%20type%3A%22geoprocessing%20samples%22)%7CitemsPerPage%3D10%7Cpage%3D1" title="http://codesharing.arcgis.com/#search%3D%7Csoftware%3DAll%20Esri%20Software%7Clanguage%3DAll%20Languages%7CresultType%3D(type%3A%22code%20samples%22%20OR%20type%3A%22add-ins%22%20OR%20type%3A%22geoprocessing%20samples%22)%7CitemsPerPage%3D10%7Cpage%3D1"&gt;ArcGIS Code Sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 08:06:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-way-to-interact-in-a-python-script-with/m-p/295774#M22861</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-10-24T08:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to interact in a python script with manually selected feature ?</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-way-to-interact-in-a-python-script-with/m-p/295775#M22862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Python run in the arcmap python window acts on selected features.&lt;/P&gt;&lt;P&gt;You could write block of code and re-run it each time you select new features or, I assume writing a function and running it via the window would work too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 08:58:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-way-to-interact-in-a-python-script-with/m-p/295775#M22862</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2016-10-24T08:58:46Z</dc:date>
    </item>
  </channel>
</rss>

