Edit Commands

Created:1/10/2002
Description:

This smaple provides a set of sample commands and tools related to Editing that can either be used in conjunction with the MapControl and PageLayoutControl, or can be used to customize ArcMap.

The sample assumes previous experience in creating custom Tools and Commands.

Undo/Redo commands
The IWorkspaceEdit::IsBeingEdited property is used to determine whether each dataset is being edited. If so, the IWorkspaceEdit::UndoEditOperation/RedoEditOperation methods are used to undo and redo any edits.


How to use:
  1. Register the Edit.dll
  2. Add the Commands to the ArcMap interface with the Customize dialog.
  3. Or to use the Commands with the MapControl or PageLayoutControl add a reference to the 'ESRI Sample Edit Commands' and use the following code.
    Dim pCommand As ICommand
    Set pCommand = New ESRI_Edit.Redo
    pCommand.OnCreate MapControl1.Object
    

Application:
ArcMap, MapControl, PageLayoutControl

Minimum ArcGIS Version Required: 8.2

Difficulty: Advanced


Visual Basic
File Description
Edit.dll Application extentsion.
clsHook.cls VB Class Module to determine the application.
Edit.res Resource file containing custom bitmaps.
clsRedo.cls VB Class Module for the Redo sample command.
clsUndo.cls VB Class Module for the Undo sample command.
Utilities.bas VB Module containing common functions.
ErrorHandling.bas VB Module for error handling.
Edit.vbp VB Project file.