Manage snap agents


Purpose This sample demonstrates how to programmatically add, remove, and turn on IEngineSnapAgent and IEngineFeatureSnapAgent. These changes are made to IEngineSnapEnvironment and are reflected in the Editor's Snap Settings dialog box and the custom Snap Editor form that is supplied with this sample.

How to use

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

  1. Start the sample application. The ushigh.shp shapefile from the sample data is loaded into the Map control.
  2. Start an edit session using the Editor menu on the toolbar.
  3. Click the Snapping Dialog command to start the Snapping Dialog.
  4. Use the controls on the Snapping Dialog to modify the snapping environment. The changes made by the Snapping Dialog are reflected in the Snapping control on the Editor menu.





Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcEditor
ArcInfo