ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Hilfe
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Die Mapping-Plattform für Ihre Organisation

ArcGIS Desktop

Ein vollständiges professionelles GIS

ArcGIS Enterprise

GIS in Ihrem Unternehmen

ArcGIS Developers

Werkzeuge zum Erstellen standortbezogener Apps

ArcGIS Solutions

Kostenlose Karten- und App-Vorlagen für Ihre Branche

ArcGIS Marketplace

Rufen Sie Apps und Daten für Ihre Organisation ab.

  • Dokumentation
  • Support
Esri
  • Anmelden
user
  • Eigenes Profil
  • Abmelden

ArcMap

  • Startseite
  • Erste Schritte
  • Karte
  • Analysieren
  • Verwalten von Daten
  • Werkzeuge
  • Erweiterungen

Check Out File As File

  • Zusammenfassung
  • Verwendung
  • Syntax
  • Codebeispiel
  • Umgebungen
  • Lizenzinformationen

Zusammenfassung

Checks out a file from a Product Library. This tool is similar to the Production Mapping Check Out File geoprocessing tool but returns a file instead of a string. Use this tool in ModelBuilder to chain the output file to another tool as an input parameter.

For example, in ModelBuilder, you can use this tool to check out an instance database .mdf file from a Product Library. The checked out .mdf file can be used as the MDF File Path input parameter in the Attach Database tool.

Verwendung

  • Durch das Auschecken wird die Datei gesperrt. Eine Datei kann immer nur von einer Person gleichzeitig ausgecheckt werden.

  • Der Produktbibliothek-Workspace muss eine Geodatabase sein.

  • Der Produktbibliothekpfad ist der Pfad zum Strukturknoten der Produktbibliothek. Ein Produktbibliothekpfad ist eine durch zwei Doppelpunkte (::) getrennte Zeichenfolge in diesem Format: Lösungsname::Produktklassenname::Serienname::Produktname::Instanzname::AOI-Name::Dateiname.

  • Um den Produktbibliothekpfad zu bestimmen, navigieren Sie zu einem Element im Fenster Produktbibliothek, klicken Sie mit der rechten Maustaste, und wählen Sie Als Pfad kopieren aus. Der Produktbibliothekpfad wird in die Zwischenablage eingefügt. Sie können ihn in jeden Parameter einfügen, für den ein Produktbibliothekpfad erforderlich ist.

  • Beim Auschecken wird eine lokale Kopie der Datei in dem durch Check Out Path angegebenen Verzeichnis erstellt. Check Out Path muss ein Ordner sein.

Syntax

arcpy.production.PLCheckOutFileAsFile(Product_Library_Workspace, Product_Library_Path, Check_Out_Path, {Overwrite_Existing_File}, {Workspace_Owner_Name})
ParameterErklärungDatentyp
Product_Library_Workspace

Pfad zum Produktbibliothek-Workspace.

Workspace
Product_Library_Path

Der Produktbibliothekpfad zu dem Element. Dieser wird folgendermaßen angegeben: Lösungsname::Produktklassenname::Serienname::Produktname::Instanzname::AOI-Name::Dateiname.

String
Check_Out_Path

Der Ordner, der die ausgecheckte Datei enthalten soll.

Folder
Overwrite_Existing_File
(optional)

Gibt an, ob beim Auscheckvorgang eine bereits vorhandene lokale Kopie der Datei überschrieben werden soll.

  • DO_NOT_OVERWRITE —Eine vorhandene lokale Kopie der Datei wird nicht überschrieben. Dies ist die Standardeinstellung.
  • OVERWRITE —Eine vorhandene lokale Kopie der Datei wird überschrieben.
Boolean
Workspace_Owner_Name
(optional)

Name des Besitzers des Bibliothekschemas. Legen Sie diesen Parameter fest, wenn das in Product_Library_Workspace angegebene Benutzerkonto nicht der Schemabesitzer ist. Dies gilt nur für Produktbibliotheken, die in Enterprise-Geodatabases gespeichert sind.

String

Codebeispiel

PLCheckOutFileAsFile example (stand–alone script)

The following example demonstrates how to use the PLCheckOutFileAsFile 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.PLCheckOutFileAsFile_production(product_library_workspace, product_library_itempath, checkout_location, overwrite_flag)

print result
print "Script completed successfully."

Umgebungen

  • Aktueller Workspace

Lizenzinformationen

  • Basic: Nein
  • Standard: Erfordert Production Mapping
  • Advanced: Erfordert Production Mapping

Verwandte Themen

  • Checking out a product
  • An overview of the Product Library toolset

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS

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

Über Esri

  • Über uns
  • Karriere
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Wir sind an Ihrer Meinung interessiert.
Copyright © 2021 Esri. | Datenschutz | Rechtliches