This topic is relevant for the following:
Product(s): ArcGIS Desktop: All
Version(s): 9.0, 9.1, 9.2
Language(s): VB6, VC++
Experience level(s): Intermediate to advanced
The standard Editor toolbars and environment does a great job in solving most people's editing needs. Sometimes, however, it is necessary to create a custom tool that provides some missing functionality or links several operations together. This section demonstrates a number of custom object solutions for basic editing scenarios to illustrate how to extend the editing model.
Editing customizations typically fall into one of the following categories: macros, commands, tools, edit tasks, snap agents, feature inspectors, and extensions. This chapter focuses on how to use each category to solve specific editing problems. The customizations discussed, therefore, rely on the use of the editing framework within the ArcMap application and require the use of an ArcEditor license.
Using macros to perform editing customizations
Introduction to creating and using commands and tools for the Editor menus, commandbars, and toolbars
An example of an Editor command that applies a difference operation to two features
Split At Intersection Tool Example
An example of an Editor tool that splits a polyline into two based on an intersection with a tracked line shape
Introduction to creating custom edit tasks
An example of an edit task which creates a new point feature at the end of an edit sketch
Introduction to creating custom snap agents
Introduction to creating extensions to the editing framework
An example of a snap agent that allows you to snap to subtypes of a feature when editing. This example also provides a dockable window to help manage the snapping properties, a command to show and hide the window, and an editor extension to tie all the custom classes together.
Introduction to creating your own custom feature inspectors
Tabbed Feature Inspector Example
An example of a feature inspector that provides a tabbed form upon which users can view both the standard feature inspector and also a geodatabase raster image attribute.