ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

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

ArcGIS Online

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

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

ArcMap

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

Attachment

  • 概要
  • ディスカッション
  • プロパティ
  • コードのサンプル

概要

The Attachment object provides access to the attachments associated with the job.

ディスカッション

A document representing information related to the job can be associated with the job as an attachment. Examples of attachments include the following:

  • Word documents of instructions
  • Proposals for work
  • Scanned maps for digitizing
  • TIFFs to georeference
  • Web URL for the external help system

プロパティ

プロパティ説明データ タイプ
ID
(読み取り専用)

The ID of the job attachment.

Integer
name
(読み取り専用)

The visible name of the job attachment displayed in an application.

String
type
(読み取り専用)

The storage type of the attachment.

  • EMBEDDED —The file is stored in the Workflow Manager (Classic) database.
  • LINKED —The link to the file path is stored in the Workflow Manager (Classic) database.
  • URL —The URL link is stored in the database.
String

コードのサンプル

The following script creates a job and adds a linked file attachment. It also gets a list of all linked file attachments associated with the job.

import arcpy
import arcpywmx

# Establish a connection to a Workflow database
conn = arcpywmx.Connect(r'c:\test\Workflow.jtc')

# Create a Workflow Job of Data Edits job type
job = conn.createtJob(job_type_name="Data Edits")

# Add a linked file attachment
job.addAttachment('LINKED', r'c:\test\Requirements.doc')

# Access a Workflow Job 
job1 = conn.getJob(99999)

# Get the list attachments associated with the job
attachments = job1.getAttachments()

# Print the names of Linked file attachments associated with the job
for attach in attachments:
     if attach.type == 'Linked':
         print(attach.name)

ArcGIS Desktop

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

ArcGIS

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

Esri について

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