Select Tool


This sample implements the ICommand and ITool interfaces and is intended to be used in ArcMap. It works like the Select tool that ships with ArcMap.

How to use:
  1. Open the sample, and compile it to make SelectTool.dll/SelectSample.dll.
  2. In the Customize dialog, click on 'Add from file' and select this dll.
  3. Under the Commands tab, select the Select command from the Developer Samples category, and drag it on to a toolbar. Dismiss the Customize dialog.
  4. Click on the tool, and start using it.


Difficulty: Intermediate

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

Key CoClasses: Envelope, Map, NewEnvelopeFeedback, Point, ScreenDisplay
Key Interfaces: IActiveView, IEnvelope, IPoint, IScreenDisplay, IMap, INewEnvelopeFeedback