I've created many custom tools in ArcMap, with most of them using the fuctionality where they are grayed out until the user starts an edit session. The code I have always used is like this:
public class ToFromTool_AddIn : ESRI.ArcGIS.Desktop.AddIns.Button
private ESRI.ArcGIS.esriSystem.UID editorUID = new ESRI.ArcGIS.esriSystem.UIDClass();
private ESRI.ArcGIS.Editor.IEditor3 m_editor;
protected override void OnUpdate()
Enabled = m_editor.EditState != esriEditState.esriStateNotEditing;
It's been a while since I've created a new ArcMap tool, but for some reason the new tool I have created will not activate when I start an edit session. There must be something I have missed, but I cannot figure it out.
Any ideas of what I need to check??