ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • ヘルプ
  • Sign Out
ArcGIS Desktop

ArcGIS Online

組織のマッピング プラットフォーム

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS for Developers

位置情報利用アプリの開発ツール

ArcGIS Solutions

各種業界向けの無料のテンプレート マップおよびテンプレート アプリケーション

ArcGIS Marketplace

組織で使えるアプリとデータを取得

  • ドキュメント
  • サポート
Esri
  • サイン イン
user
  • マイ プロフィール
  • サイン アウト

ArcMap

  • ホーム
  • はじめに
  • マップ
  • 解析
  • データ管理
  • ツール
  • エクステンション

Add File

  • サマリー
  • 使用法
  • 構文
  • コードのサンプル
  • 環境
  • ライセンス情報

サマリー

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.

プロダクト ライブラリは、カートグラフィック製品およびデジタル データ製品に必要な情報とデータをジオデータベースに格納します。Esri Mapping and Charting solutions は、ビジネス ルール、ドキュメント、および空間情報をプロダクト ライブラリに格納します。

使用法

  • [プロダクト ライブラリ ワークスペース] はジオデータベースでなければなりません。

  • [プロダクト ライブラリ ファイルのパス] は、特定のプロダクト ライブラリ ツリーのノードへのパスです。プロダクト ライブラリ パスは二重コロン区切りの文字列で、「ソリューション名::プロダクト クラス名::シリーズ名::プロダクト名::インスタンス名::AOI 名」の形式となります。

  • プロダクト ライブラリのパスを決定するには、[プロダクト ライブラリ] ウィンドウでアイテムを参照し、それを右クリックして [パスとしてコピー] をクリックします。プロダクト ライブラリ パスがクリップ ボードに配置されます。このプロダクト ライブラリ パスを、それを必要とする任意のパラメーターに貼り付けることができます。

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

構文

PLAddFile(product_library_workspace, product_library_itempath, filepath, {checkin_comments}, {product_library_ownername})
パラメーター説明データ タイプ
product_library_workspace

プロダクト ライブラリ ワークスペースのパス。

Workspace
product_library_itempath

アイテムへのプロダクト ライブラリ パス。このパスは、「ソリューション名::プロダクト クラス名::シリーズ名::プロダクト名::インスタンス名::AOI 名::ファイル名」で指定されます。

String
filepath

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

File
checkin_comments
(オプション)

チェックインに関連付けられるコメント。

String
product_library_ownername
(オプション)

プロダクト ライブラリ スキーマの所有者の名前。product_library_workspace で指定したユーザー アカウントがスキーマの所有者でない場合、このパラメーターを指定します。これは、エンタープライズ ジオデータベースに格納されたプロダクト ライブラリにのみ適用されます。

String

コードのサンプル

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

環境

  • 現在のワークスペース

ライセンス情報

  • ArcGIS Desktop Basic: いいえ
  • ArcGIS Desktop Standard: 次のものが必要 Production Mapping
  • ArcGIS Desktop Advanced: 次のものが必要 Production Mapping

関連トピック

  • An overview of the Product Library toolset

ArcGIS Desktop

  • ホーム
  • ドキュメント
  • サポート

ArcGIS プラットフォーム

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

Esri について

  • 会社概要
  • 採用情報
  • Esri ブログ
  • ユーザ カンファレンス
  • デベロッパ サミット
Esri
ご意見・ご感想をお寄せください。
Copyright © 2019 Esri. | プライバシー | リーガル