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

Attachment

  • Zusammenfassung
  • Auswertung
  • Eigenschaften
  • Codebeispiel

Zusammenfassung

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

Auswertung

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

Eigenschaften

EigenschaftErklärungDatentyp
ID
(Nur lesen)

The ID of the job attachment.

Integer
name
(Nur lesen)

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

String
type
(Nur lesen)

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

Codebeispiel

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

  • 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