Execute Reviewer Batch Job (Data Reviewer)

汇总

Runs a Reviewer batch job on a workspace and writes the results to a Reviewer session.

用法

语法

ExecuteBatchJob_Reviewer (Reviewer_Workspace, Session_Name, Batch_Job_File, {Production_Database}, {Version})
参数说明数据类型
Reviewer_Workspace

The workspace where the Reviewer batch job results are going to be written.

Workspace
Session_Name

The name of the Reviewer session that is going to store the features and records reported by the batch job.

String
Batch_Job_File

The path to the Reviewer batch job file that is going to be executed.

File
Production_Database
(可选)

The production database on which you want to run the Reviewer batch job.

Workspace
Version
(可选)

The ArcSDE geodatabase version on which to run the Reviewer batch job.

String

代码示例

ExecuteReviewerBatchJob example (stand-alone Python script)

In the following example, the SoCal_GeoOnGeoChecks.rbj batch job, is run on the Edit_Sample geodatabase. The results are written to the Geo On Geo session.

# Name: ExecuteReviewerBatchJob.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 Data 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 the data and batch job file
Edit_Sample_gdb = r'C:\SampleData\Edit_Sample.gdb'
SoCal_GeoOnGeoChecks_rbj = r'C:/SampleData/Batch_Jobs/SoCal_GeoOnGeoChecks.rbj'

# Execute Reviewer Batch Job function
arcpy.ExecuteBatchJob_Reviewer(Edit_Sample_gdb, "Geo On Geo", SoCal_GeoOnGeoChecks_rbj)

# Check in the Data Reviewer extension
arcpy.CheckInExtension("datareviewer")

环境

此工具不使用任何地理处理环境

相关主题

许可信息

ArcView: 需要 Data Reviewer
ArcEditor: 需要 Data Reviewer
ArcInfo: 需要 Data Reviewer

9/30/2010