Buffer snap agent


Purpose This sample demonstrates how to create a snapping agent based on a buffer around the points of the current editable point feature class. In this sample, a snapped vertex of a feature will be located no closer than 1000 map units from the point that is closest to the cursor. For electrical datasets, it is common to snap primary lines to the boundary of the symbol representing a pole. Use this snapping agent with an appropriate buffer distance (based on the radius of the pole symbol).

How to use

See How to use ArcGIS samples for help running the sample.

  1. Start the sample application. The golf.shp shapefile in the sample data is loaded into the Map control.
  2. Zoom in to a golf course feature on the map.
  3. Use the Editor menu on the toolbar to start an edit session. The editing controls on the toolbar are enabled.
  4. Enable the Buffer Snap Agent command, and activate the Sketch tool.
  5. Hover over an existing feature. The editing circle snaps to a buffer around the feature.





Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcEditor
ArcInfo