Autodesk® Topobase™ provides over 80 samples showing how you can use the API. These are provided in both Visual Basic and C# formats. They cover a broad range of categories, such as creating users, connecting to the database, customizing the user interface, and manipulating features.
This chapter describes how to build, install, and run the samples, and gives a brief description of what they do. For more details, see the sample code itself. The sample code is installed into <topobase>\Development\Samples where <topobase> is the AutoCAD Map 3D installation directory. This is typically C:\Program Files\AutoCAD Map 3D Client <yyyy>, where <yyyy> is the product version.
Most of the samples use a AutoCAD Map 3D plugin configuration file (.tbp). For more information, see Quick Guide: Creating an Industry Model PluginTBP File Format and TBP File Format
Most of the samples can be run independently. However, some of them use the required features and workspace set up by Sample 01 so you MUST build and run Sample 01 first. See Sample 01 - Create Structure for details.
Some of the samples require the use of a workspace more fully featured that the one setup by Sample 01. The workspace referred to here is the demo Land Management workspace (TB_LM_WA) whose creation is described in the Setting up the Demo Data topic in the Getting Started section of the AutoCAD Map 3D Administrator Guide.
Unless otherwise stated, all the samples can be run in either the desktop AutoCAD Map 3D Client or AutoCAD Map 3D Web Client.