Node Alignment Tool

Created:9/12/2002
Description:

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:
  1. In the Customize dialog, click on 'Add from file' and select this sample's dll.
  2. 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.
  3. Begin editing and set the selectable layers to include an editable polygon or polyline layer.
  4. 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.

Application:
ArcMap

Requires: Editable topology data

Minimum ArcGIS Version Required: 8.3

Difficulty: Intermediate


Visual Basic
File Description
NodeAlignment.cls Class containing the code for the Node Alignment Tool.
NodeAlignmentTool.vbp The project file for the Node Alignment Tool.


Key CoClasses: EditSelection, TopologyGraph, TopologyNode
Key Interfaces: IEnumFeature, ITopologyGraph, ITopologyNode
Key Members: IEnumFeature::Next, ITopologyGraph::NodeSelection, ITopologyGraph::TransformSelection, ITopologyGraph::Post, ITopologyNode::Geometry