Show Navigation | Hide Navigation
You are here:
Geoprocessing > Automating your work with scripts > Scripting object: Properties and Methods > Properties and Methods

ListToolboxes method

Release 9.3
Last modified January 19, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Properties and Methods"

Related Topics

Note: This topic was updated for 9.3.1.

Lists all toolboxes. Specifying search conditions (wildcard) limits the results.

Returns a Python List that will contain the names of the toolboxes

NOTE: The content below describes the use of ListToolboxes using a 9.3-version geoprocessor. When using a 9.2-version geoprocessor, ListToolboxes returns an enumeration instead of a Python List. For more information, see Differences between geoprocessor versions.


object.ListToolboxes({wildCard} As String) As Python List

{} = optional

Part Description
object The instantiated geoprocessing object.
wildCard Optional. Combination of * and characters that helps to limit the results. The asterisk is the same as saying ALL. If no wildcard is specified, all toolboxes will be returned.


This script lists all the environments and prints their usage to the Python interactive window.

import arcgisscripting
gp = arcgisscripting.create(9.3)

toolboxes = gp.ListToolboxes()

for toolbox in toolboxes:
    print toolbox

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.