Available with Production Mapping license.
Summary
This tool transfers your ArcGIS Data Reviewer Desktop batch jobs and editing field configurations from one product library to another. It creates a lightweight version of your product library containing all your configured batch jobs while enabling automatic attribution validation. It also carries over field configurations to manage the visibility and behavior of attributes within Feature Manager.
Usage
The workspaces must be geodatabases.
The user credentials in the connection file must have permission to create data in the workspace.
You can use a configuration keyword for file and enterprise geodatabases. Each geodatabase type and configuration supports different keywords.
If an empty geodatabase is chosen, the production library schema will be applied to it before adding in the data model version and files.
If a prepopulated product library is chosen, this tool will overwrite any present data model version. If not, it will append the chosen data model version to the existing product.
Syntax
arcpy.production.DistributeProductLibrary(source_product_library, target_product_library, data_model_version, {configuration_keyword})
Parameter | Explanation | Data Type |
source_product_library | The product library that contains the batch jobs and field configurations that will be transferred. | Workspace |
target_product_library | The product library that will receive the batch jobs and field configurations from the Source Product Library. | Workspace |
data_model_version [data_model_version,...] | The version of the data model to which the desired batch jobs and field configurations are related. | String |
configuration_keyword (Optional) | Data storage or configuration keyword. The default is Defaults. | String |
Code sample
DistributeProductLibrary (stand-alone script)
The following stand-alone sample script demonstrates how to use DistributeProductLibrary for an ArcGIS Data Reviewer Desktop batch job transfer.
# Name: DistributeProductLibrary_example.py
# Description: Distributes the field configurations and batch jobs from one product library to another to create a lightweight version to run your editing environment.
# Import system modules
import arcpy
# Check out extension
arcpy.CheckOutExtension("Foundation")
# Define variables
source_product_library = r"C:\data\Editing_Sample.gdb"
target_folder_path = r"C:\ProductLibrary"
target_name = "NewProductLibrary"
data_model_version = "Edit (1.0.0.0)"
configuration_keyword = "DEFAULTS"
#Create new geodatabase to hold the target product library
target_product_library = arcpy.CreateFileGDB_management(target_folder_path, target_name)
# Execute Distribute Product Library
arcpy.DistributeProductLibrary_production(source_product_library, target_product_library, data_model_version, configuration_keyword)
# Check in Production Mapping license
arcpy.CheckInExtension("Foundation")
Environments
Licensing information
- Basic: No
- Standard: Requires Production Mapping
- Advanced: Requires Production Mapping