Skip To Content

Update Extended Property (Topographic Production)

Zusammenfassung

Updates an extended property in the identified properties table for the chosen job.

Vorsicht:

This tool is designed to be run as a step in a Workflow Manager workflow. Running this tool outside of Workflow Manager does not honor all Workflow Manager constraints such as job assignment, dependencies, or holds and may cause a job to enter an unusable state.

Vorsicht:

This tool is intended for use with the Topographic Mapping production workflows and will not support an improperly configured Workflow Manager repository. Sample workflows and instructions for configuring Topographic Mapping production workflows are available as part of the product files installer.

Verwendung

  • If the Increment Value parameter is checked, the value will be added to any existing value. If the extended property is a number, the value will be added to the existing value and the sum will be set for the extended property value. If the extended property is not a number, the value will be appended to any existing value.

  • Populate the Properties Table Name parameter with the name of the table only. It is not necessary to populate the full database path to the table or the qualified name of the table.

  • The table designated in the Properties Table Name parameter must be registered as an extended property table in Workflow Manager.

Syntax

UpdateExtendedProperty(job_id, properties_table_name, property_field, value, {increment_value}, {database_path})
ParameterErklärungDatentyp
job_id

The Job ID of the Workflow Manager job that will be updated.

Long
properties_table_name

The name of the extended properties table that will be updated.

String
property_field

The property to be updated in the extended properties table.

String
value

The value that will be set for the extended property.

String
increment_value
(optional)

If a value already exists for the chosen property, this parameter specifies whether the increment value will be added to the current value or will replace the current value.

  • INCREMENTThe specified value will be added to any existing value for the property.
  • REPLACEThe specified value will replace the existing value for the property.
Boolean
database_path
(optional)

The Workflow Manager database connection file (.jtc) that contains the job information. If no connection file is specified, the current default Workflow Manager database will be used.

File

Abgeleitete Ausgabe

NameErklärungDatentyp
updated_job_id

Returns the Job ID of the updated Workflow Manager job.

Long

Codebeispiel

UpdateExtendedProperty example (stand-alone script)

This sample script increases the rework_count field in the TOPO_PRODUCTION_PROPERTIES table by 1.

# Name: UpdateExtendedProperty_sample.py
# Description: Sample script for running the Update Extended Property tool, and increasing the rework_count field in the
# TOPO_PRODUCTION_PROPERTIES table by 1

# Import System Modules
import arcpy

# Check Out Extensions
arcpy.CheckOutExtension('Foundation')
arcpy.CheckOutExtension('JTX')

# Setting the environment
arcpy.env.overwriteOutput = True

# Setting Local Variables
job_id = 2023
properties_table_name = 'TOPO_PRODUCTION_PROPERTIES'
property_field = 'rework_count'
value = 1
increment_value = 'INCREMENT'
database_path = r'C:\Data\Workflows\Testing.jtc'

# Calling the Update Extended Property tool to increase the value in the rework_count field by 1
arcpy.topographic.UpdateExtendedProperty(job_id, properties_table_name, property_field, value, increment_value, database_path)

# Getting all messages, warnings, and errors from the tool run and printing the results back to the user
messages = arcpy.GetMessages(0)
warnings = arcpy.GetMessages(1)
errors = arcpy.GetMessages(2)
arcpy.AddMessage('Tool Messages: {}\nTool Warnings: {}\nTool Errors{}\n'.format(messages, warnings, errors))

# Check In Extensions
arcpy.CheckInExtension('Foundation')
arcpy.CheckInExtension('JTX')

Umgebungen

Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.

Lizenzinformationen

  • Basic: Nein
  • Standard: Erfordert Production Mapping and Workflow Manager
  • Advanced: Erfordert Production Mapping and Workflow Manager

Verwandte Themen