GetMessages
Resumen
Returns the geoprocessing messages from a tool by specified severity level..
Sintaxis
GetMessages ({severity})
Parámetro | Explicación | Tipo de datos |
severity |
The severity level of messages to return.
Not specifying a severity will return all types of messages. (El valor predeterminado es 0) | Integer |
Tipo de datos | Explicación |
String |
The geoprocessing tool messages, separated by a newline ('\n'). |
Ejemplo de código
GetMessages example
Returns the geoprocessing messages.
import arcpy fc = arcpy.GetParameterAsText(0) featurecount = arcpy.GetCount_management(fc) # Print all of the geoprocessing messages returned by the # last tool (GetCount) # print arcpy.GetMessages()
Temas relacionados
7/10/2012