ListTools

サマリー

Returns a list of geoprocessing tools.

構文

ListTools ({wild_card})
パラメーター説明データ タイプ
wild_card

Limits the results returned. If a value is not specified, all values are returned. The wildcard is not case sensitive.

SymbolDescriptionExample

*

Represents zero or more characters.

Te* finds Tennessee and Texas.

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

The list returned from the function containing geoprocessing tool names, limited by the optional wild_card argument.

コードのサンプル

ListTools example

List all tools in the specified toolbox.

import arcpy

# Create a list of tools in the Analysis toolbox
tools = arcpy.ListTools("*_analysis")

# Loop through the list and print each tool's usage.
for tool in tools:
    print(arcpy.Usage(tool))

関連トピック