Synthèse
The GetIDMessage function gets the string of the error or warning ID message.
Discussion
GetIDMessage allows you to access geoprocessing tool message codes for use in Python.
Syntaxe
GetIDMessage (message_ID)
| Paramètre | Explication | Type de données |
message_ID | The geoprocessing message ID. | Integer |
| Type de données | Explication |
| String | The message string associated with the message ID. |
Exemple de code
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)Rubriques connexes
Vous avez un commentaire à formuler concernant cette rubrique ?