Append Command


The Editor Extend task can be used to extend selected line features to the sketch entered by the user. This task helps in most situations, but there are times when you want to extend features a specified amount regardless of whether that causes them to snap to other features or not. The Append Command gives the user the ability to specify the distance to extend a feature and allows them to indicate which end of the feature to extend.

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 Append command from the 'Developer Samples' category, and drag it on to a toolbar. Dismiss the Customize dialog.
  3. Begin editing and select one or more line features.
  4. Click on the Append command and fill out the dialog that appears.


Requires: Editable Line data

Difficulty: Intermediate

Visual Basic
File Description
AppendCommand.cls Class containing the Append command.
AppendCommandPrj.vbp The project file for the Append command.
frmAppend.frm Form containing the dialog used with the Append command.

Key CoClasses: Editor, Feature, Polyline
Key Interfaces: ICurve, IEditor, IFeature, IPointCollection
Key Members: ICurve::QueryPoint, IEditor::StartOperation, IFeature::Shape, IFeature::Store, IPointCollection::AddPoint, IPointCollection::UpdatePoint