ArcObjects Library Reference  (GeoprocessingUI)    

ArcToolbox CoClass

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Interfaces

Interfaces Description
IArcToolbox Provides access to methods on the ArcToolbox object.
IPersist Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile.
IPersistStream (esriSystem)

Remarks

The ArcToolbox coclass manages the set of toolboxes and tools displayed inside the ArcToolbox, a dockable window. This dockable window can be displayed or hidden inside the ArcCatalog, ArcMap, or ArcGlobe applications. The ArcToolbox object provides utility methods for adding and removing toolboxes from the ArcToolbox window, invoking a geoprocessing tool dialog, etc.

[Visual Basic 6.0]

The following code shows how to obtain the ArcToolbox and access a geoprocessing tool by name.

Sub GetArcToolbox()
  Dim pUID As New UID
  pUID.Value = "esriGeoprocessingUI.ArcToolboxExtension"
  
  Dim pArcToolboxExtension As IArcToolboxExtension
  Set pArcToolboxExtension = Application.FindExtensionByCLSID(pUID)

  Dim pArcToolbox As IArcToolbox
  Set pArcToolbox = pArcToolboxExtension.ArcToolbox
  
  Dim pGPTool As IGPTool
  Set pGPTool = pArcToolbox.GetToolbyNameString("buffer_analysis")
End Sub