Synthèse
Returns a list of geoprocessing tools.
Syntaxe
ListTools ({wild_card})
Paramètre | Explication | Type de données | ||||||
wild_card | Limits the results returned. If a value is not specified, all values are returned. The wildcard is not case sensitive.
| String |
Type de données | Explication |
String | The list returned from the function containing geoprocessing tool names, limited by the optional wild_card argument. |
Exemple de code
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))
Rubriques connexes
Vous avez un commentaire à formuler concernant cette rubrique ?