The Node Alignment Tool demonstrates how the geometry in multiple features
can be updated simultaneously by moving a topology node they all share (the
feature classes of each feature must participate in the same topology). The
tool operates based on the current selection environment and the active
topology. When a box is drawn out by the user, the tool will search for
topology nodes and selectable polyline or polygon features within the box. It
will then loop through the topology nodes looking for the closest vertex from
the selected features. The geometry of the topology node will then be shifted
to the closest vertex.
How to use:
In the Customize dialog, click on 'Add from file' and select this sample's dll.
Under the Commands tab of the Customize dialog, select the Node Alignment Tool from
the 'Developer Samples' category, and drag it on to a toolbar. Dismiss the Customize dialog.
Begin editing and set the selectable layers to include an editable polygon or polyline layer.
Activate the Node Alignment Tool and drag out a box on the screen that includes a
topology node and at least one selectable polyline or polygon feature. The topology node
will be moved to the closest vertex of the selectable features within the box.