ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Create Product Library

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Creates a new product library in a geodatabase.

A product library is a series of tables in a geodatabase that allows multiuser environments to centralize information and behavior for cartographic and digital data production. Production business rules, documents, and spatial information are stored inside the product library, allowing an organization to enforce and standardize production. Data model information, data validation rules, geographic extents, symbology rules, and map documents can all be managed inside the product library as examples of production business rules. A product library workspace is a required input for any product library-related workflow.

Usage

  • The Workspace for Product Library must be a geodatabase.

  • Use a path to an sde connection file if Workspace for Product Library references an enterprise geodatabase. 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 configuration keywords; however, personal geodatabases do not support keywords.

  • To determine a product library path, browse to an item in the Product Library window, right-click it, and click Copy As Path. The product library path will be placed on the clipboard. You can paste it into any parameter that requires a product library path.

Syntax

arcpy.production.CreateProductLibrary(product_library_workspace, {database_config_keyword}, {product_library_extension})
ParameterExplanationData Type
product_library_workspace

The workspace that will store the product library.

Workspace
database_config_keyword
(Optional)

Database storage or configuration keyword. The default is Defaults.

String
product_library_extension
(Optional)

Indicates a product library type to create in the input workspace. If not set, a Production Mapping product library is created.

  • AVIATION —Creates an ArcGIS Aviation Charting product library.
  • MARITIME_CHARTING —Creates an ArcGIS Maritime product library.
String

Code sample

CreateProductLibrary example (stand–alone script)

The following stand-alone script demonstrates how to use the CreateProductLibrary tool.

# Name: CreateProductLibrary_Example.py
# Description: Creates a new Product Library in a file geodatabase
# Requirements: Production Mapping extension

# import arcpy and checkout a Production Mapping license
import arcpy
arcpy.CheckOutExtension("foundation")

#Set local variables
product_library_workspace = "C:\\data\\productlibrary.gdb"
database_config_keyword = "DEFAULTS"

# create a product library
arcpy.CreateProductLibrary_production(product_library_workspace, database_config_keyword)

print "Script completed successfully."

# Check in the extension
arcpy.CheckInExtension("foundation")

Environments

  • Current Workspace

Licensing information

  • Basic: No
  • Standard: Requires Production Mapping
  • Advanced: Requires Production Mapping

Related topics

  • Create Production Database
  • What is the product library?
  • What are configuration keywords?
  • An overview of the Product Library toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal