GetParameterValue

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

概要

For a specified tool name, returns the default value of the desired parameter.

構文

GetParameterValue (tool_name, index)
パラメーター説明データ タイプ
tool_name

The tool name for which the parameter default value will be returned.

String
index

Index position of the parameter in the specified tool's parameter list.

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

Returns the default value of the specified parameter for the tool.

コードのサンプル

GetParameterValue example

Returns the default value for specified tool parameter.

import arcpy

# Returns 'POLYGON'
print(arcpy.GetParameterValue("CreateFeatureClass_management", 2))

関連トピック