This sample code is designed to add a jumper (semi-circle) during the adding of
line feature that crosses another line feature of the same feature class. For instance,
if you are adding a new pipe feature and you cross over an existing pipe feature, this
extension will automatically add a jumper.
The extension is designed as an MxExtension so the state of the extension can be toggled on
and off through the ArcMap extension dialog. This is accomplished by implementing
IExtensionConfig in addition to IExtension.
The extension is currently searching for a layer called "Pipes". Update the code and
recompile if you want to apply this to a layer with a different name.
How to use:
(Optional) Change the layer to search for from "Pipes" to something else and recompile.
Register the dll on your machine.
Use Categories to add clsJump to the 'ESRI Mx Extensions' component category.
Start ArcMap and add a line layer with the name "Pipes" (or whatever name you used).
Access the Extensions dialog and make sure the Jumper extension is enabled.
Start editing, and add line features into the "Pipes" layer that cross other features in that layer.
If you use the Extension dialog in ArcMap to turn off the extension, you must also change the
target layer for the change to take effect.