Check Out File As Database (Production Mapping)

Niveau de licence :BasicStandardAdvanced

Récapitulatif

Checks out an instance database file (.mdf) from a Product Library. This tool is similar to the Production Mapping Check Out File geoprocessing tool but returns a workspace as the checked out file. Use this tool in ModelBuilder to chain the output workspace (the database .mdf file) to another tool as an input parameter.

For example, in ModelBuilder, you can use this tool's output workspace as the Workspace for Production Database input parameter in the Upgrade Production Database tool.

Utilisation

Syntaxe

PLCheckOutFileAsDatabase_production (Product_Library_Workspace, Product_Library_Path, Check_Out_Path, {Overwrite_Existing_File}, {Workspace_Owner_Name})
ParamètreExplicationType de données
Product_Library_Workspace

Path to the product library workspace.

Workspace
Product_Library_Path

The product library path to the item. This is specified as Solution Name::Product Class Name::Series Name::Product Name::Instance Name::AOI Name::File Name.

String
Check_Out_Path

The folder that will contain the checked out file.

Folder
Overwrite_Existing_File
(Facultatif)

Indicates whether the checkout process overwrites a local copy of the file if it exists.

  • DO_NOT_OVERWRITEDo not overwrite an existing local copy of the file. This is the default.
  • OVERWRITEOverwrite an existing local copy of the file.
Boolean
Workspace_Owner_Name
(Facultatif)

Product library schema owner name. Set this parameter if the user account specified in Product_Library_Workspace is not the schema owner. This applies only to product libraries stored in enterprise geodatabases.

String

Exemple de code

PLCheckOutFileAsDatabase example (stand–alone script)

The following example demonstrates how to use the PLCheckOutFileAsDatabase tool.

# Name: CheckOutFile_Example.py
# Description: Checks out a file from a Product Library
# 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"
product_library_itempath = "Products::Topographic Maps::QA_QC_carto_checklist.rtf"
checkout_location = "C:\\Data"
overwrite_flag = "OVERWRITE"

# create a production database
result = arcpy.PLCheckOutFileAsDatabase_production(product_library_workspace, product_library_itempath, checkout_location, overwrite_flag)

print result
print "Script completed successfully."

Environnements

Thèmes connexes

Informations de licence

ArcGIS for Desktop Basic: Annuler
ArcGIS for Desktop Standard: Requis Production Mapping
ArcGIS for Desktop Advanced: Requis Production Mapping
4/26/2014