Track Shapes


Purpose
This sample illustrates how to create a DockWindow that allows a user to draw points, polylines, and polygons onto the current view.
 
After drawing shapes to the view, you may move the shapes to the map, in a similar fashion to the behavior of the Find tool.
 
 

How to use

See Using the samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Open and build the solution in Visual Studio.
  2. Open ArcGIS Explorer, and open a map in which you want to use the sample task.
  3. Select the Add-Ins tab from the ArcGIS Explorer ribbon.
  4. Click the 'Track Shapes' button to activate the sample.
  5. Using the Point, Polyline, and Polygon tools draw shapes on the view.


  6. Track Shapes DockWindow


Download the files for all languages
DockWindow.cs This file contains the code behind the DockWindow.
Download the C# files
DockWindow.vb This file contains the code behind the DockWindow.
Download the VB.NET files