GetParameterCount

この ArcGIS 2.6 ドキュメントはアーカイブされており、今後更新されません。 コンテンツとリンクが古い場合があります。 最新のドキュメントをご参照ください

概要

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.

構文

GetParameterCount (tool_name)
パラメーター説明データ タイプ
tool_name

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

String
戻り値
データ タイプ説明
Integer

The number of parameters for the specified tool.

コードのサンプル

GetParameterCount example

Returns the number of tool parameters.

import arcpy

# Returns 7
print(arcpy.GetParameterCount("Buffer_analysis"))

関連トピック