Zusammenfassung
Get the string of the error or warning ID message.
Auswertung
GetIDMessage allows you to access geoprocessing tool message codes for use in Python.
Syntax
GetIDMessage (message_ID)
Parameter | Erklärung | Datentyp |
message_ID | The geoprocessing message ID. | Integer |
Datentyp | Erklärung |
String | The message string associated with the message ID. |
Codebeispiel
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)