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: WindowsMinimum ArcGIS Release: 9.0 |
How to use:
-
Open and build the project Tree.dsp, to register
the DLL and register to component categories.
- 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.
- In the ArcMap VBA environment, Click Tools, then
References and browse to the example's DLL.
- Run the 'TreeFeatureTest' VBA macro from the .bas file that
accompanies the example.
| 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 Visual C++ files
Download the files for all languages
Key Libraries: GeoDatabase
Key CoClasses:Feature