GetParameterValue

Diese ArcGIS 2.6-Dokumentation wurde archiviert und wird nicht mehr aktualisiert. Inhalt und Links sind möglicherweise veraltet. Verwenden Sie die aktuelle Dokumentation.

Zusammenfassung

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

Syntax

GetParameterValue (tool_name, index)
ParameterErklärungDatentyp
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
Rückgabewert
DatentypErklärung
String

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

Codebeispiel

GetParameterValue example

Returns the default value for specified tool parameter.

import arcpy

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

Verwandte Themen