Building a custom geoprocessing function tool (Calculate Area)
Development licensing
Deployment licensing
ArcView
ArcView
ArcEditor
ArcEditor
ArcInfo
ArcInfo
Engine Developer Kit
Engine Runtime
How to use
See Using the samples for help on compiling, setting up the debugger, and running the sample (either an exe or dll).
Open the solution file, review the code, and compile the project.
The function factory will be automatically added to the Geoprocessor Function Factory component category.
Create a custom toolbox in a folder or geodatabase of choice. ArcGIS Desktop and ArcGIS Engine developers can do this by using the IGPUtilities2.CreateToolboxFromFactory method. See How to create a toolbox from a function factory for details.
ArcGIS Desktop users also have the option to add the tool to a custom toolbox manually in ArcCatalog, ArcMap, or ArcGlobe. Right-click a custom toolbox and choose Add, Tool, Expand the AreaCalculation function factory, and select the Calculate Area tool, then click OK to add the tool to the custom toolbox.