ListToolboxes

サマリー

The ListToolboxes function returns a list of geoprocessing toolboxes.

構文

ListToolboxes ({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 toolbox names, optionally limited by the wild_card argument.

コードのサンプル

ListToolboxes example

List specified toolboxes.

import arcpy

# Get and print a list of all toolboxes.
toolboxes = arcpy.ListToolboxes()

for toolbox in toolboxes:
    print(toolbox)

関連トピック