GetMessageCount

Resumen

Returns a numeric count of all the returned messages from the last executed command.

Sintaxis

GetMessageCount ()
Valor de retorno
Tipo de datosExplicación
Integer

The count of returned messages from the last executed command.

Ejemplo de código

GetMessageCount example

Returns the first and last geoprocessing messages.

import arcpy

fc = arcpy.GetParameterAsText(0)
arcpy.GetCount_management(fc)

# Print the first and last geoprocessing tool messages
#
messageCount = arcpy.GetMessageCount()
print arcpy.GetMessage(0)
print arcpy.GetMessage(messageCount - 1)

Temas relacionados


7/10/2012