How to use
See How to use ArcGIS samples for help on running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.
How to use this sample?
- Verify that the ArcObjects Java SDK is installed on your computer.
- Navigate to this sample's lib folder ($AGSDEVKITJAVA/java/samples/arcobjects/geoprocessing/customtools/createbuffer/lib) and copy CreateBufferExt.jar into the <$AGSDESKTOPJAVA/java/lib/ext folder to deploy the custom extension. The extension functionality will become available to you when you restart ArcMap or ArcCatalog.
- Open ArcMap or ArcCatalog and expand Toolboxes.
- Create a new toolbox under My Toolboxes.
- Right click the newly created toolbox and select Add -> Tool.
- Select JavaCBFunctionFactory from the list of toolboxes. Optionally, you could expand toolbox node and view the toolset and tool embedded within. Click OK.
- Verify that the Java Create Buffer Tool is added to your toolbox.
- Double-click the custom tool and provide values for all the parameters.
- Click OK to execute the tool.
- Examine results.
Download the files for Java
geoprocessing/customtool/CreateBuffer.java | Geoprocessing tool class |
geoprocessing/customtool/CBFunctionFactory.java | Geoprocessing Function Factory class |
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine |
ArcGIS for Desktop Basic |