AnsweredAssumed Answered

Convert Editor IEditTask --> AddIns.Extension and get it as IEditTask on runtime

Question asked by mik1971 on Jul 29, 2019
Latest reply on Aug 2, 2019 by sean_jones-esristaff

Hi,

 

We convert old custom COM tools to custom AddIns and have a question - how to get it as IEditTask on runtime?

We need to set Application.CurrentTask with ESRI.ArcGIS.Editor.IEditTask, so the question is how to create an object with type IEditTask?

 

Old COM class:

   public class clsCustomEditTask : ESRI.ArcGIS.Editor.IEditTask

 

New AddIn class:

   public class clsCustomEditorExtension : ESRI.ArcGIS.Desktop.AddIns.Extension

 

The help says we cannot deploy (register) tasks in AddIn

See

ArcObjects Help for .NET developers 

 

ArcMap 10.6.1, C#

Outcomes