AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

Maps and Layers


Detailed Description

Maps and layers are fundamental components of the Geospatial Platform API. A map is composed of layers, where each layer represents data from a single feature source.

A map (AcMapMap object) corresponds to a single AutoCAD Map 3D drawing file (.DWG). To get the map for a drawing file, call AcMapMap.GetCurrentMap().

Note:
The classes AcMapMap and AcMapLayer are derived from the Geospatial Platform API classes MgMapBase and MgLayerBase. Some operations require casting the base classes to the derived classes. See the Geospatial Platform Supplement Reference for information about all AcMap* classes.
Example (C#)
AcMapMap map = AcMapMap.GetCurrentMap();
MgLayerCollection layers = map.GetLayers();
foreach (AcMapLayer layer in layers)
{
    // process the layer
}

For additional information about manipulating and rendering maps, see the AutoCAD Map 3D Geospatial Platform Developer's Guide.


Modules

 MgLayerBase
 MgLayerCollection
 MgLayerGroup
 MgLayerGroupCollection
 MgLayerGroupType
 MgLayerType
 MgMapBase
 MgMapCollection
 MgSelectionBase