Duplicating check-outs

Description:

This example demonstrates how to duplicate an existing check-out geodatabase and register it as a new check-out in a master geodatabase.

How to use:
  1. Run the batch file called '_INSTALL.bat' to register the command dll.
  2. Add the command to one of the toolbars in ArcCatalog
  3. In ArcMap, check-out some data to a personal geodatabase.
  4. In ArcCatalog, select the check-out geodatabase you've just created. Run the command to copy the geodatabase and duplicate the check-out it contains.

Application:
ArcCatalog

Minimum ArcGIS Version Required: 8.3

Difficulty: Intermediate


Visual Basic
File Description
_INSTALL.bat Installation script that registers the dll. Modify path to regsvr32.exe as required
DuplicatingCheckout.vbp Visual Basic project that implements this sample.
clsDuplicateCO.cls Command to create a duplicate check-out geodatabase and register it with a master geodatabase.
DuplicateCO.dll The compiled project.


Key CoClasses: Replica, WorkspaceName
Key Interfaces: IReplica, IReplicaEdit, IWorkspaceReplicas, IWorkspaceReplicasAdmin, IEnumReplica, IVersion, IVersionInfo, IVersionedWorkspace