ListTools (arcpy)

サマリ

Lists the geoprocessing tools, limited by name.

構文

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

The wild_card limits the results returned. If no wild_card is specified, all values are returned.

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

The list returned from the function containing geoprocessing tool names, limited by the optional wild card.

コードのサンプル

ListTools example

Lists 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))

関連トピック

4/26/2014