Select to view content in your preferred language

Use of "GarciaUI_ModifyFeatureTask" in Addin Tool/Button Code

922
0
10-06-2016 02:39 AM
MaryFricke
Deactivated User

I have a series of edit COM objects which need to be converted to Addins.  I have converted each edit operation to a button Add-In in C#.  However, some of the operations handle 'Edit Tasks' and use code such as:

if (m_editor == null)     return ;   IEditTaskSearch editTaskSearch = editor as IEditTaskSearch;   IEditTask editTask = editTaskSearch.get_TaskByUniqueName(     "GarciaUI_ModifyFeatureTask");

or with use of a 'Find'.  The converted 'buttons' are part of a C# extension in a toolbar.  The buttons seem to work in unit tests but I am worried about the use of such a 'task' in an AddIn.   However, I am concerned about the use in a production environment.  Can anyone comment on their experience with this type of conversion?

0 Kudos
0 Replies