upgrade an extension for ArcGIS Desktop from version 10.0 to 10.2.1.

12-15-2014 12:49 AM
New Contributor III

Hi all,

I am struggling to find out of if the feature has been
modified and the code that I have used before was

Private Shared m_appReference As AppReference

If m_appReference.fnGetEditor.CurrentTask.Name = "Modify Feature" Then

   ‘do something'

End If

Definition of the fnGetEditior is as below

Public Function fnGetEditor() As IEditor     
   Dim pId As New UID
   Dim pEditor As IEditor


          ' get the Editor based on its UID value - esriCore.Editor
          ' pId.Value = "esriCore.Editor"

          pId.Value = "esriEditor.Editor"
          pEditor = Me.Application.FindExtensionByCLSID(pId)

          Return pEditor

   Catch ex As Exception
          Return Nothing

   End Try

End Function

Any help would be appreciated.


0 Kudos
1 Reply
Regular Contributor II

Did you have anything in addition to the above code? The code you're posted so far appears to show how to get the hook into the ArcMap Editor. Are you wanting to wire into it's events so that you can review when features are created, updated, or deleted?

0 Kudos