Solved! Go to Solution.
Implements ESRI.ArcGIS.Controls.IEngineEditTask Private Shared Sub ArcGISCategoryRegistration(ByVal registerType As Type) Dim regKey As String = String.Format("HKEY_CLASSES_ROOT\CLSID\{{{0}}}", registerType.GUID) EngineEditTasks.Register(regKey) End Sub ''' <summary> ''' Required method for ArcGIS Component Category unregistration - ''' Do not modify the contents of this method with the code editor. ''' </summary> Private Shared Sub ArcGISCategoryUnregistration(ByVal registerType As Type) Dim regKey As String = String.Format("HKEY_CLASSES_ROOT\CLSID\{{{0}}}", registerType.GUID) EngineEditTasks.Unregister(regKey) ... #Region "Private Members" Private m_engineEditor As IEngineEditor Private m_editSketch As IEngineEditSketch Private m_editLayer As IEngineEditLayers #End Region End Sub
The reason you can't use this sample in ArcMap is that it is made for engine.Implements ESRI.ArcGIS.Controls.IEngineEditTask Private Shared Sub ArcGISCategoryRegistration(ByVal registerType As Type) Dim regKey As String = String.Format("HKEY_CLASSES_ROOT\CLSID\{{{0}}}", registerType.GUID) EngineEditTasks.Register(regKey) End Sub ''' <summary> ''' Required method for ArcGIS Component Category unregistration - ''' Do not modify the contents of this method with the code editor. ''' </summary> Private Shared Sub ArcGISCategoryUnregistration(ByVal registerType As Type) Dim regKey As String = String.Format("HKEY_CLASSES_ROOT\CLSID\{{{0}}}", registerType.GUID) EngineEditTasks.Unregister(regKey) ... #Region "Private Members" Private m_engineEditor As IEngineEditor Private m_editSketch As IEngineEditSketch Private m_editLayer As IEngineEditLayers #End Region End Sub
You could try to use the ArcGIS developer templates (installed with the arcgis developer kit) to create an ArcMap edit task and copy the code (not all the code, just the methods that make up the interface) and the member variables. You would have to convert all the classes specific to engine to the a similar class specific to ArcMap. Probably a task that an ArcObjects developer could undertake.
Hi Ben,
I know that this thread has been for awhile, were you be able to re-create this tool?