<?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: Is it possible to add this type of tool to the editor toolbar written in python? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-it-possible-to-add-this-type-of-tool-to-the/m-p/203042#M15611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the functionality doesn't exist within arctoolbox, then it can't be used within the Python environment, you are looking at arcobjects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2012 20:14:58 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2012-08-10T20:14:58Z</dc:date>
    <item>
      <title>Is it possible to add this type of tool to the editor toolbar written in python?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-add-this-type-of-tool-to-the/m-p/203041#M15610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I would like is a tool that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Allows the user to select a line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Delete the line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Then add a new line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Maybe save the attributes of the old line but not required&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hitting the "delete key" to delete the line works fine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but then the user has to go back up to the menu to add the line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just removing this step would save a lot of time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help at all would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 15:28:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-add-this-type-of-tool-to-the/m-p/203041#M15610</guid>
      <dc:creator>BillMiller</dc:creator>
      <dc:date>2012-08-10T15:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add this type of tool to the editor toolbar written in python?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-add-this-type-of-tool-to-the/m-p/203042#M15611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the functionality doesn't exist within arctoolbox, then it can't be used within the Python environment, you are looking at arcobjects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 20:14:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-add-this-type-of-tool-to-the/m-p/203042#M15611</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2012-08-10T20:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add this type of tool to the editor toolbar written in python?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-add-this-type-of-tool-to-the/m-p/203043#M15612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What I would like is a tool that:&lt;BR /&gt;1) Allows the user to select a line&lt;BR /&gt;2) Delete the line&lt;BR /&gt;3) Then add a new line&lt;BR /&gt;4) Maybe save the attributes of the old line but not required&lt;BR /&gt;&lt;BR /&gt;Hitting the "delete key" to delete the line works fine&lt;BR /&gt;but then the user has to go back up to the menu to add the line.&lt;BR /&gt;Just removing this step would save a lot of time.&lt;BR /&gt;Any help at all would be appreciated.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python cursors and geometry objects can do all of these steps, but the main issue is whether there a way to do it interactively with the user through some type of event trigger detection and editing action event monitoring in Python.&amp;nbsp; I do not think that Python can read editing event triggers, so ArcObjects is needed.&amp;nbsp; However, I believe that if Python could detect edit event like ArcObjects (delete, create and modify), that then both ArcObjects and Python would be able to use cursors and geometry object to read a selected record in a layer, store it in a row or dictionary object for later attribute transfer, delete the selected line, create a new line's geometry if a set of ordered coordinates is provided (an event based thing if following mouse clicks), create a feature object (newrow for Python) that gets the new geometry and a transfer of attribute data, and insert the new line into a target feature class.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 23:04:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-add-this-type-of-tool-to-the/m-p/203043#M15612</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2012-08-10T23:04:13Z</dc:date>
    </item>
  </channel>
</rss>

