Export Replica Schema (Data Management) (ArcInfo and ArcEditor only) |
|
|
Release 9.2
Last modified November 29, 2010 |
Print all topics in : "Tools" |
Creates a replica schema file with the schema of an input one or two-way replica.
Learn more about synchronizing replica schemas
Learn more about schema changes
Usage tips
The following environment settings affect this tool: workspace, scratch workspace, and Configuration keyword.
Command line syntax
An overview of the Command Line window
ExportReplicaSchema_management <in_geodatabase> <output_replica_schema_file> <in_replica>
| Parameter | Explanation | Data Type |
| <in_geodatabase> |
Specifies the replica geodatabase from which to export the replica schema from. The geodatabase may be local or remote. |
Workspace|GPComposite type |
| <output_replica_schema_file> |
Specifies the file in which to export schema. |
File |
| <in_replica> |
The replica from which to export schema. |
String |
ExportReplicaSchema Countries.mdb d:\schema1.mdb MyReplica1
Scripting syntax
About getting started with writing geoprocessing scripts
ExportReplicaSchema_management (in_geodatabase, output_replica_schema_file, in_replica)
| Parameter | Explanation | Data Type |
| in_geodatabase (Required) |
Specifies the replica geodatabase from which to export the replica schema from. The geodatabase may be local or remote. |
Workspace|GPComposite type |
| output_replica_schema_file (Required) |
Specifies the file in which to export schema. |
File |
| in_replica (Required) |
The replica from which to export schema. |
String |
# Create the Geoprocessor object
import arcgisscripting, sys, scripting, os
gp = arcgisscripting.create()
# Set the necessary product code
gp.SetProduct("ArcInfo")
# Load required toolboxes...
gp.AddToolbox("Data Management Tools.tbx")
# Process: Export Replica Schema...
gp.ExportReplicaSchema_management("Countries.mdb", "d:\schema1.mdb", "MyReplica1")