Hi,
I have below code part which identifies the MapTool and execute it through ICommand object. But after I am done with the purpose how to stop the execution?
var iCommand = FrameworkApplication.GetPlugInWrapper(commandId) as ICommand;
if (iCommand != null)
{
// Let ArcGIS Pro do the work for us
if (iCommand.CanExecute(null))
{
iCommand.Execute(null);
}
} The above code launch MapTool so I want to stop it from code as well.