|Connect at Intermediate Vertices extension
By default, connectivity is not established when a mid-span (intermediate) vertex of a
complex edge is snapped to an existing junction. The ConnectatIntermediateVertices
method can be expensive to execute depending on the complex edge.
This custom editor extension allows you to specify when connectivity will be establsihed
between mid-span vertices of complex edges and junctions. A property sheet is added
to the Editor Options dialog which allows you to toggle between the default behaviour and
establishing connectivity between intermediate vertices and existing junctions. The property
sheet does not appear if the edit workspace is a coverage or shapefile workspace.
The ConnectatIntermediateVertices method can be very expensive and time consuming depending on
the number of vertices in the complex edge feature. As such, it should be turned off immediately
after the desired task is completed.
How to use:
- Double click on the _Install.BAT file.
- Load a geometric network and start an edit session.
- Select 'Options...' on the Editor menu, click on the new 'Network Properties' tab.
- Check the 'Connect at Intermediate Vertices" box and click 'Apply'.
- Connectivity will be established on snapping a mid-span vertex of a complex edge feature to an existing junction.
An edit session with a geometric network containing complex edge features.
||Editor extension implementation.
||Property sheet implementation.
||Form property sheet is laid out on.
||The project file for the sample editor extension.
||The compiled project.
||Batch file that registers the dll and calls Register_with_Component_Categories.reg
||Registry file that registers the various classes with their appropriate component categories.
IExtension, IEditEvents, IEditEvents2, IComPropertyPage, IComplexEdgeFeature
IExtension::Startup, IEditEvents::OnCreateFeature, IEditEvents::BeforeStopOperation, IEditEvents2::OnVertexMoved, IComplexEdgeFeature::ConnectAtIntermediateVertices