ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

GetParameterValue

  • Summary
  • Syntax
  • Code sample

Summary

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

Syntax

GetParameterValue (tool_name, index)
ParameterExplanationData Type
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

Return Value

Data TypeExplanation
String

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

Code sample

GetParameterValue example

Returns the default value for specified tool parameter.

import arcpy

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

Related topics

  • CopyParameter
  • GetArgumentCount
  • GetParameter
  • GetParameterAsText
  • GetParameterCount
  • GetParameterInfo
  • SetParameter
  • SetParameterAsText
  • Setting script tool parameters

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal