AnsweredAssumed Answered

Subtle problem with IEditSketch

Question asked by hillsh on Apr 9, 2013
Latest reply on Apr 10, 2013 by hillsh
I have a set of tools (inherited from BaseTool) developed in VS2008 C# for ArcMap 9.3.  One of the tools (call it Tool A) uses the editsketch to create a polygon which is then added as a new feature to a feature class (call it feature class A).  The edit operation is stopped at that point.  Then in another tool (call it Tool B) I again use the edit sketch to draw a polygon which is used to select point features and perform some operations on them (I do this because it is easy to set up the edit sketch geometry and capture the FinishSketch event to get the edit sketch geometry).  However, the first time I use the edit sketch in Tool B after creating a feature with Tool A, the polygon that I create to use as a selector is added as a new feature to Feature Class A.  It's as if the double click event that finishes the sketch in Tool A is still hooked to the event, even though the editor has been stopped and a (supposedly) new edit sketch has been started.

Does anyone have any insight into why this is happening, and maybe a solution?

Outcomes