ArcGIS 10.0 Tool Add-in.ITool has a deactivate method that is called by the system when you click on another tool from the previous tool in use. How can I call that deactivate method? I can't seem to find a class that returns a reference to Tool.
IApplication app = GetMeSomehow(); app.CurrentTool = null; // (or 'Nothing' if VB)
java.lang.ClassCastException: com.esri.arcgis.systemUI.ICommandProxy cannot be cast to com.esri.arcgis.addins.desktop.Tool
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.