TreeFeature



Description:

This sample makes a subclass of the standard esriGeodatabase Feature by adding an interface with functions specific to trees.

For a full discussion of the sample, see the Extending ArcObjects topic TreeCustomFeature Example.

Products:
ArcEditor: VC++

Platforms: Windows

Minimum ArcGIS Release: 9.0

How to use:
  1. Open and build the project Tree.dsp, to register the DLL and register to component categories.
  2. Open ArcMap and add the Trees feature class. You will find this feature class in the ExtendingAO personal geodatabase, which is in the Samples/Data/ExtendingArcObjects folder of the ArcGIS Developer Kit. This feature class has been preconfigured to store custom tree features.
  3. In the ArcMap VBA environment, Click Tools, then References and browse to the example's DLL.
  4. Run the 'TreeFeatureTest' VBA macro from the .bas file that accompanies the example.

Download the Visual C++ files
StdAfx.h Standard precompiled header file that imports the ArcGIS object libraries.
Tree.vcproj Project file.
Tree.sln Solution file.
Tree.idl Interface Definition Language file that defines the coclass and custom interface.
TreeFeature.cpp Implementation of the custom feature.
TreeFeature.h Header file for the custom feature.

Download the files for all languages



Key Libraries: GeoDatabase
Key CoClasses:Feature