Create Reviewer Session (Data Reviewer)
Summary
Creates a new Reviewer session in the specified workspace.
Usage
-
If the session exists, it will not be overwritten.
-
If the specified workspace is not a Reviewer workspace, the Reviewer administration tables are added to it before creating the session.
-
The RevDataset, which contains the Reviewer tables, is created in the default GCS_WGS_1984 spatial reference.
-
The Reviewer session that is created is assigned the next number in sequence. For instance, if you have already created two sessions in your Reviewer workspace, the session created using this script is going to be Session 3: [Session Name].
-
When creating a session in an ArcSDE geodatabase, the new session's version is the version associated with the connection properties of the Reviewer Workspace database connection.
Syntax
Parameter | Explanation | Data Type |
Reviewer_Workspace |
The workspace in which a new Reviewer session is going to be created. | Workspace |
Session_Name |
The name of the session that is going to be created in the Reviewer workspace. | String |
Code Sample
This stand-alone Python script creates a new session in the Reviewer.mdb workspace. The session is called "QC Pass 1".
# Name: CreateReviewerSession.py # Description: Creates a reviewer session in a geodatabase # Author: ESRI # Date: June 2010 # Import arcpy module import arcpy # check out a data reviewer extension license arcpy.CheckOutExtension("datareviewer") # Import the reviewer toolbox - you may have to alter this path arcpy.ImportToolbox(r'C:/Program Files/ArcGIS/Desktop10.0/ArcToolbox/Toolboxes/Data Reviewer Tools.tbx') # path to a workspace Reviewer_mdb = "C:/SampleData/Reviewer.mdb" # Execute the Create Reviewer Session tool arcpy.CreateReviewerSession_Reviewer(Reviewer_mdb, "QC Pass 1") # check in the data reviewer extension arcpy.CheckInExtension("datareviewer")