GetParameterValue
サマリ
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'
arcpy.GetParameterValue("CreateFeatureClass_management", 2)
関連項目
7/10/2012