How to use
See How to use ArcGIS 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.
- Open and compile the solution.
- Start ArcMap.
- Click on Customize menu and choose Customize mode… to open the Customize dialog box. Scroll down to the Walkthroughs section in the Commands tab's Categories pane.
- In the Commands pane, click and drag the Draw Graphic Line command on to the ArcMap graphical user interface (GUI). Close the Customize dialog box.
- Click the added tool to activate it, click the map window in ArcMap to anchor the first point of the line, move the mouse pointer and click again (repeat as necessary), then double-click to end the line added as a graphic in the active view.
DrawGraphicLine.cs | Demonstrates how to draw graphic lines in the map window of ArcMap. |
DrawGraphicLine.vb | Demonstrates how to draw graphic lines in the map window of ArcMap. |
Download the files for all languages
See Also:
Walkthrough: Create a custom toolCreating commands and tools
Development licensing | Deployment licensing |
---|---|
ArcGIS for Desktop Basic | ArcGIS for Desktop Basic |
ArcGIS for Desktop Standard | ArcGIS for Desktop Standard |
ArcGIS for Desktop Advanced | ArcGIS for Desktop Advanced |