ListTools
Summary
Lists the geoprocessing tools, limited by name. A Python list is returned from the function.
Syntax
ListTools ({wild_card})
| Parameter | Explanation | Data Type |
wild_card |
The wild card limits the results returned. If no wild card is specified, all values are returned. | String |
| Data Type | Explanation |
| String |
The Python List returned from the function containing geoprocessing tool names, limited by the optional wild card. |
Code Sample
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)
Related Topics
10/28/2011