Solved! Go to Solution.
I'm using 10.1. I tired to install the tool, but get a message saying I need to install version 10. Can we get the tool to work with 10.1?
With ArcGIS Desktop v10.1, you need to use the addin that sean_jones created in post # 8
Thanks. My problem is I don't understand how to install it.
It's been quite a while since I was here. The attached is the new deployment package of the COM component version I just recompile today. I modified the launch conditions to make it works for both ArcGIS 10.0 and 10.1.
For those who have trouble installing the add-in for 10.1, you can try this COM component version. It should be as same as the add-in version that Sean Jones created for 10.1.
Let me know if you run into any troubles with the installer.
Ok, the ported sample is up on arcgis.com as the Cut Polygons Without Selection Tool code sample.
This is a visual studio 2010 project that will create a 10.1 desktop add-in for use in ArcMap.
The code is included so you can generally see the pattern for creating edit tools that use the sketch in the 10.x framework.
The tool was created using the esri add-in templates in visual studio by creating a construction tool but without the category part, thus you still get an edit tool template that uses the sketch but without it being a construction tool. The code from the OnFinishSketch method in the engine edit task was then ported to the OnSketchFinished method in the add-in.
You can create COM dll for use in 10.0.x using the same pattern but by using the Desktop ArcMap Edit Tool template in the ArcGIS New Item wizard when creating a new class in your com dll project. Stick the code in the m_editEvents_OnSketchFinished method. Note that this has to be a com dll at 10.0.x because add-ins do not support implementing interfaces until 10.1, and you need to implement ISketchTool to use the sketch. Consider changing the ArrayList to generics and use a different method for the sketch-polygon intersection if you take this on.