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

Add File

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

Zusammenfassung

Adds a file to a Product Library. This associates the file with a Product Library entry. Once you have added a file to a product library, use Check Out File and Check In File to manage changes made to it.

Eine Produktbibliothek speichert Informationen und Daten, die für die kartografische und digitale Datenproduktion in einer Geodatabase erforderlich sind. In ArcGIS Defense Mapping, ArcGIS Production Mapping, ArcGIS Maritime, ArcGIS Bathymetry und ArcGIS Aviation werden Geschäftsregeln, Dokumente und räumliche Informationen in einer Produktbibliothek gespeichert.

Verwendung

  • Der Produktbibliothek-Workspace muss eine Geodatabase sein.

  • Der Dateipfad der Produktbibliothek 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.

  • 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.

  • This tool will not overwrite existing files in Product Library File Path. The tool will return ERROR 90102: File already exists if it finds an existing file with the same name as the file to add in Product Library File Path.

Syntax

arcpy.production.PLAddFile(product_library_workspace, product_library_itempath, filepath, {checkin_comments}, {product_library_ownername})
ParameterErklärungDatentyp
product_library_workspace

Pfad zum Produktbibliothek-Workspace.

Workspace
product_library_itempath

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

String
filepath

Path to the file that is going to be added to the product library.

File
checkin_comments
(optional)

Kommentare, die beim Einchecken verknüpft werden sollen.

String
product_library_ownername
(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

PLAddFile example (Python window)

The following Python window script demonstrates how to use the PLAddFile tool.

# Name: PLAddFile_Example.py
# Description: Adds a file to a Product Library
# Requirements: Production Mapping extension

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

# Product library and item path variables
product_library_workspace = "C:\\Data\\ProductLibrary.gdb"
product_library_itempath = "Products::NewSolution::NewClass::NewSeries"

# path to an existing file
file_path = "c:\\data\\script.py"

# execute the Add File tool
try:
    res = arcpy.PLAddFile_production(product_library_workspace, product_library_itempath,file_path)
    print res.getMessages()

except Exception, e:
    print e.message
	
print "Script completed successfully."

Umgebungen

  • Aktueller Workspace

Lizenzinformationen

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

Verwandte Themen

  • 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