Measure Task

Created:1/2/2001
Description:

This sample allows you to measure the distance between locations using the sketch tool. The functionality in this example mimics the functionality of the Measure Tool, but it has the added advantage of the Editor's snapping environment. Use this edit task when you want to snap to the locations you are measuring from.

How to use:
  1. Register the dll on your machine.
  2. Use Categories to add the dll to the 'ESRI Edit Tasks' component category.
  3. Start an edit session and select the Measure Task as the current task.
  4. Set the snapping environment, then use the sketch tool to perform measurements.

Application:
ArcMap

Requires: An edit session.

Difficulty: Beginner


Visual Basic
File Description
MeasureTask.cls Class implementing the edit task.
MeasureTaskPrj.vbp The project file for the custom edit task.
MeasureTaskPrj.dll The compiled project.


Key CoClasses: Editor
Key Interfaces: IEditTask, IEditSketch, ISegment
Key Members: IEditSketch::Geometry, ISegment::Length