<?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 Problem with IEditor in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-with-ieditor/m-p/376216#M9924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem when I use my own edit tool together with existing ArcMap tasks. My program lets the user select some existing objects and creates new features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I start an Editor session and run my tool only then everything works fine. After 'Save Edits' the result is saved as expected. When I use my tool first and do some other editing next (like deleting or moving some points) the result is also correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem occurs when I use my tool after some ArcMap commands. The modifications done by ArcMap are not written to the feature tables. Instead I get DELTA_... tables in my PersonalGDB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only the features that my program created are saved, so I suppose that something in my code prevents the 'Save Edits' for all the ArcMap edits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the following code to get an editor object and start/stop editing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UID uidEdit = new UIDClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uidEdit.Value = "esriEditor.Editor";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_editor = m_application.FindExtensionByCLSID(uidEdit) as IEditor;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_editor.StartOperation();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//do the edit task&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_editor.StopOperation("MyTool");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;catch (Exception ex)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MessageBox.Show(ex.Message, "Problem", MessageBoxButtons.OK, MessageBoxIcon.Error);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_editor.AbortOperation();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas Waenke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2011 15:36:30 GMT</pubDate>
    <dc:creator>ThomasWaenke</dc:creator>
    <dc:date>2011-11-30T15:36:30Z</dc:date>
    <item>
      <title>Problem with IEditor</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-with-ieditor/m-p/376216#M9924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem when I use my own edit tool together with existing ArcMap tasks. My program lets the user select some existing objects and creates new features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I start an Editor session and run my tool only then everything works fine. After 'Save Edits' the result is saved as expected. When I use my tool first and do some other editing next (like deleting or moving some points) the result is also correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem occurs when I use my tool after some ArcMap commands. The modifications done by ArcMap are not written to the feature tables. Instead I get DELTA_... tables in my PersonalGDB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only the features that my program created are saved, so I suppose that something in my code prevents the 'Save Edits' for all the ArcMap edits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the following code to get an editor object and start/stop editing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UID uidEdit = new UIDClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uidEdit.Value = "esriEditor.Editor";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_editor = m_application.FindExtensionByCLSID(uidEdit) as IEditor;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_editor.StartOperation();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//do the edit task&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_editor.StopOperation("MyTool");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;catch (Exception ex)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MessageBox.Show(ex.Message, "Problem", MessageBoxButtons.OK, MessageBoxIcon.Error);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_editor.AbortOperation();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas Waenke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 15:36:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problem-with-ieditor/m-p/376216#M9924</guid>
      <dc:creator>ThomasWaenke</dc:creator>
      <dc:date>2011-11-30T15:36:30Z</dc:date>
    </item>
  </channel>
</rss>

