Line Edit Toolbar

Created:9/19/2001
Description:

This set of code contains a toolbar with six commands for the editing of lines and three additional commands for displaying characteristics of lines (vertices, dangles, and directions). The purpose of the toolbar is to provide some additional functionality for editing of line work. Some of the commands are similar to what can be done with ArcEdit. Some of the functionality will be exposed in the new topology engine currently under development. Functionality in this toolbar includes:
  1. Display vertices and end points.
  2. Display directional arrows.
  3. Display dangles.
  4. Split at midpoint.
  5. Divide lines.
  6. Proportion lines.
  7. Modify length of lines.
  8. Remove dangles.
  9. Create intersections.
  10. Create polygon.
  11. Replace sketch with selected.

There are some additional tools in the out of the box interface or the Developer Samples that have complimentary functionality to the tools on this toolbar. The Split Line command can be found on the Editor Toolbar, and in the Developer Samples you will find the Extend Command, Flip Command, Traverse Editing Spread Sheet, and Angle-Angle tool.


How to use:
  1. From ArcMap, browse and select the LineEditToolbarPrj.dll using the 'Add From File' button on the Customize dialog.
  2. Activate the Line Editing toolbar.
  3. Start an edit session with at least one polyline layer loaded.
  4. Display vertices - make sure the Target layer is a polyline layer and then toggle on the command.
  5. Display arrows - make sure the target layer is a polyline layer, toggle on the command and then select some polyline features from the target layer.
  6. Display dangles - make sure the target layer is a polyline layer, toggle on the command and then select some polyline features from the target layer.
  7. Split at midpoint - select one or more editable polylines and click on the command to split these features.
  8. Divide lines, select one or more editable polylines and click on the command to display a dialog. Make your parameter choices and then click the 'OK' button to perform the divide.
  9. Proportion lines - select one or more editable polylines and click on the command to display a dialog. Make your parameter choices and then click the 'OK' button to perform the proportion.
  10. Modify length of lines - select one or more editable polylines and click on the command to display a dialog. Make your parameter choices and then click the 'OK' button to perform the modify.
  11. Remove dangles - active the tool, then draw a box around a group of polylines. The dangles (lines then do not snap to other lines at the start and end points) will be deleted.
  12. Create intersections - Select a group of line features from the same feature class and then choose this command. Intersections will be created where the features cross each other.
  13. Create polygon - Select a group of line features that close to form a polygon and then choose this command. A new polygon will be created in the target feature class (assuming it is a polygon layer).
  14. Replace sketch with selected - Select a group of line features that form a chain, begin a sketch, and then choose this command. The sketch will be replaced with the selected set of polylines. As an example, this command could be used to split a polygon based on existing lines. The steps would be to select the lines, start a sketch, use this command to replace the sketch, chain the edit task to cut poly, select the polygon to cut, then finish the sketch.

Application:
ArcMap

Requires: Editable Polyline data

Difficulty: Advanced


Visual Basic
File Description
frmDivideLineFeatures.frm Form for entry of line dividing parameters.
frmModifyLength.frm Form for entry of length modifying parameters.
frmProportionLine.frm Form for entry of line proportioning parameters.
CreateIntersections.cls Class for creating intersections between selected lines in the same feature class.
DivideLineFeatures.cls Class for dividing the selected lines.
DrawNodesVertices.cls Class for drawing the nodes and vertices of polylines in the map.
DrawSelectedArrows.cls Class for drawing the directional arrows for selected polylines.
DrawSelectedDangles.cls Class for drawing the dangles among the selected polylines.
LineEditToolbar.cls Class defining the Line Editing toolbar.
ModifyLength.cls Class for modifying the length of selected polylines.
ProportionLines.cls Class for proportioning (splitting) selected polylines.
RemoveDangle.cls Class for removing the dangles within a user specified box.
SplitLinesAtMidpoint.cls Class for splitting selected polylines at their midpoints.


Key CoClasses: Editor, Polyline
Key Interfaces: ICurve, IEditLayers, IPointCollection
Key Members: ICurve::QueryPoint, IEditLayers::CurrentLayer, IPointCollection::AddPoint