This document is archived and information here might be outdated.  Recommended version.


How to create a toolbox from a function factory (ArcObjects .NET 10.5 SDK)

How to create a toolbox from a function factory


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 toolbox will contain all the function tools available in that function factory. This custom toolbox can be created in a folder or a geodatabase. ArcGIS Desktop and ArcGIS Engine developers can do this by using the CreateToolboxFromFactory method of IGPUtilities3.
To create a custom toolbox from a function factory, see the following code example:
[C#]
IGPUtilities3 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 IGPUtilities3
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




Development licensing Deployment licensing
ArcGIS Desktop Basic ArcGIS Desktop Basic
ArcGIS Desktop Standard ArcGIS Desktop Standard
ArcGIS Desktop Advanced ArcGIS Desktop Advanced
Engine Developer Kit Engine