Skip to main content

ListToolboxes

Resumen

The ListToolboxes function returns a list of geoprocessing toolboxes.

Sintaxis

ListToolboxes({wild_card})

El parámetro Explicación Tipo de datos

wild_card

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

Use an asterisk (*) to represent zero or more characters. For example, Te* finds Tennessee and Texas.

String

Valor de retorno

Tipo de datos Explicación

String

The list returned from the function containing geoprocessing toolbox names, optionally limited by the wild_card argument.

Muestra de código

ListToolboxes example

List specified toolboxes.

import arcpy

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

for toolbox in toolboxes:
    print(toolbox)