GetParameterCount (arcpy)
Resumen
Returns a count of the parameter values for the specified tool. If the tool is contained in a custom toolbox, use ImportToolbox to access the custom tool.
Sintaxis
GetParameterCount (tool_name)
Parámetro | Explicación | Tipo de datos |
tool_name |
The name of the tool for which the number of parameters will be returned. | String |
Tipo de datos | Explicación |
Integer |
The number of parameters for the specified tool. |
Ejemplo de código
GetParameterCount example
Returns the number of tool parameters.
import arcpy
# Returns 7
param_count = arcpy.GetParameterCount("Buffer_analysis")
Temas relacionados
9/11/2013