Synthèse
Sets additional categories of informative messages to be returned with geoprocessing tool messages.
Geoprocessing messages can be accessed with several ArcPy functions including GetMessages and GetAllMessages.
Discussion
Remarque :
This function does not take into account how the Additional Information Messages options have been set.
Syntaxe
SetMessageLevels (levels)
Paramètre | Explication | Type de données |
levels [levels,...] | Specifies the categories of messages that will be included in geoprocessing tool messages.
Multiple options can be set using a list. A single option can be set as a string or a list. (La valeur par défaut est NORMAL) | String |
Exemple de code
Use SetMessageLevels to return syntax messages with geoprocessing tool messages.
import arcpy
arcpy.SetMessageLevels(['COMMANDSYNTAX'])
Rubriques connexes
Vous avez un commentaire à formuler concernant cette rubrique ?