GetMessage

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

サマリー

Returns a geoprocessing tool message by its index position.

構文

GetMessage (index)
パラメーター説明データ タイプ
index

The message to retrieve.

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

The geoprocessing tool message.

コードのサンプル

GetMessage example

Returns specified geoprocessing messages.

import arcpy

fc = arcpy.GetParameterAsText(0)

arcpy.GetCount_management(fc)

# Print the first and last message returned by the last
#  tool executed (GetCount)
message_count = arcpy.GetMessageCount()
print(arcpy.GetMessage(0))
print(arcpy.GetMessage(message_count - 1))

関連トピック