Create Version (Data Management) (ArcInfo and ArcEditor only) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
Creates a new version of the specified database.
Usage tips
The output version name is prefixed by the SDE geodatabase user name; for example: SDE.arctoolbox.
The output version's permissions are set as private by default but can be changed using the Alter Version tool.
Personal and file geodatabases do not support versioning. Versioning tools only work with ArcSDE data.
Versions are not affected by changes occurring in other versions of the database.
A version's permission can only be changed by its owner (the user who created it).
The following environment settings affect this tool: workspace, scratch workspace, and output CONFIG keyword.
Command line syntax
An overview of the Command Line window
CreateVersion_management <in_workspace> <parent_version> <version_name>
Parameter | Explanation | Data Type |
<in_workspace> |
The ArcSDE geodatabase that contains the parent version and will contain the new version. The default is to use the workspace defined in the environment settings. |
Workspace |
<parent_version> |
The geodatabase, or version of a geodatabase, on which the new version will be based. |
String |
<version_name> |
The name of the version to be created. |
String |
createversion_management "d:\workspace", "Database Connections\Connection to workspace.sde", "vegetation_fall02.sde"
Scripting syntax
About getting started with writing geoprocessing scripts
CreateVersion_management (in_workspace, parent_version, version_name)
Parameter | Explanation | Data Type |
in_workspace (Required) |
The ArcSDE geodatabase that contains the parent version and will contain the new version. The default is to use the workspace defined in the environment settings. |
Workspace |
parent_version (Required) |
The geodatabase, or version of a geodatabase, on which the new version will be based. |
String |
version_name (Required) |
The name of the version to be created. |
String |
import arcgisscripting gp = arcgisscripting.create() gp.toolbox = "management" gp.createversion("d:\workspace", "Database Connections\Connection to workspace.sde", "vegetation_fall02.sde")