Measure Tool

Created:9/7/1999
Last Modified:6/6/2000
Description:

This tool displays the distance between two points on the map. When you press the left mouse button down on a point on the map and holding this button down, move the mouse around the map, the distance from the first point to the current location of the mouse is displayed on the screen.

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 Measure command from the 'Developer Samples' category, and drag it on to a toolbar. Dismiss the Customize dialog.
  3. Click on the tool, and start using it.

Application:
ArcMap

Difficulty: Intermediate


Visual Basic
File Description
clsMeasure.cls Class file that implements the COM Server.
frmResources.frm VB Form file holding resources used within project.
Measure.vbp VB Project File for sample.
Measure.dll Compiled project DLL.


Key CoClasses: LineSymbol, Map, Point, ScreenDisplay, TextSymbol
Key Interfaces: IPoint, IScreenDisplay, ITopologicalOperator, ITextSymbol, ILineSymbol