How to create a toolbox from a function factory
|
| Development licensing |
Deployment licensing |
| ArcView |
ArcView |
| ArcEditor |
ArcEditor |
| ArcInfo |
ArcInfo |
| Engine Developer Kit |
Engine Runtime |
Creating a toolbox from a function factory
Once a user develops a function tool or a set of function tools, the tools must be added to a toolbox before consumption. This document shows how to create a custom toolbox from a function factory.
This new toolbox will contain all the function tools available in that function factory. The custom toolbox can be created in a folder or geodatabase of choice. ArcGIS Desktop and ArcGIS Engine developers can do this by using the
IGPUtilities2.CreateToolboxFromFactory method. See the following code example:
[C#]
IGPUtilities2 gpUtilities = new GPUtilitiesClass();
// Create the toolbox containing function tools from the function factory.
// Provide the alias name of the function factory, a location where the toolbox is to be created
// and the name of the function factory.
gpUtilities.CreateToolboxFromFactory("area", @"C:\GPSDK", "AreaCalculation");
[VB.NET]
Dim pGPUtilities As IGPUtilities2
pGPUtilities = New GPUtilities
' Create the toolbox containing function tools from the function factory.
' Provide the alias name of the function factory, a location where the toolbox is to be created
' and the name of the function factory.
pGPUtilities.CreateToolboxFromFactory("area", "C:\GPSDK", "AreaCalculation")
See Also:
Building a custom geoprocessing function tool