I'm building an Add-in solution in ArcGIS 10 that contains a custom tool. I'd like to borrow the functionality of the lasso selection tool without reinventing the wheel. Is there a way to intercept the geometry of the lasso selection area from the mouse up event? I want to pass the geometry of the lasso area to a spatial filter.
I know how to get control of the lasso tool with the following code in my custom tool class:
private ITool m_SelectTool;
protected override void OnActivate()
{
UID uid = new UID();
uid.Value = "esriArcMapUI.SelectByLassoTool";
ICommandItem commandItem = ArcMap.Application.Document.CommandBars.Find(uid, false, false);
ICommand command = commandItem.Command;
m_SelectTool = (ITool)command;
}