GetIDMessage

この ArcGIS 3.1 ドキュメントはアーカイブされており、今後更新されません。 コンテンツとリンクが古い場合があります。 最新のドキュメントをご参照ください

サマリー

Get the string of the error or warning ID message.

説明

GetIDMessage allows you to access geoprocessing tool message codes for use in Python.

構文

GetIDMessage (message_ID)
パラメーター説明データ タイプ
message_ID

The geoprocessing message ID.

Integer
戻り値
データ タイプ説明
String

The message string associated with the message ID.

コードのサンプル

GetIDMessage example

Access a message string using GetIDMessage and add to the tool messages using AddMessage.

import arcpy

message = arcpy.GetIDMessage(84001)

# The returned value should be: u'Reading Data....'
arcpy.AddMessage(message)

関連トピック