GetParameterCount

Zusammenfassung

Returns a count of the parameter values for the specified tool. If the tool is contained in a custom toolbox, use the ImportToolbox function to access the custom tool.

Syntax

GetParameterCount (tool_name)
ParameterErläuterungDatentyp
tool_name

The name of the tool for which the number of parameters will be returned.

String
Rückgabewert
DatentypErläuterung
Integer

The number of parameters for the specified tool.

Codebeispiel

GetParameterCount example

Returns the number of tool parameters.

import arcpy

print(arcpy.GetParameterCount("Buffer_analysis"))

Verwandte Themen