ListTools
Resumen
The ListTools function returns a list of geoprocessing tools.
Sintaxis
ListTools({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, |
String |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
String |
The list returned from the function containing geoprocessing tool names, optionally limited by the |
Muestra de código
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))