Data Sources
The AutoCAD Map 3D data-sources feature links information from an external database to objects in a drawing.
Data Sources Samples Data Sources Class
The AcMapDataSources class provides the following data-sources functions:
- Constructor/destructor - AcMapDataSources()/~AcMapDataSources()
- Attach data source - AttachDataSource()
- Detach data source - DetachDataSource()
- Detach all data sources - DetachAllDataSources()
- Connect data source - ConnectDataSource()
- Disconnect data source - DisconnectDataSource()
- Disconnect all data sources - DisconnectAllDataSources()
- Count attached data sources - GetAttachedDataSourcesCount()
- Count connected data sources - GetConnectedDataSourcesCount()
- Retrieve connected data sources - GetConnectedDataSources()
- Retrieve disconnected data sources - GetDisconnectedDataSources()
- Retrieve attached data sources - GetAttachedDataSources()
For data-sources source-code samples, see Data Sources Samples.
- For more information about data sources in AutoCAD Map 3D, choose Help > Autodesk Map Help > Contents tab (or press F1), and then navigate to Using AutoCAD Map 3D (by feature) > External Databases > Attaching and Configuring Data Sources.
- For a data-sources tutorial in AutoCAD Map 3D, choose Help > Tutorials > Contents tab, and then choose "Working with External Databases".
To view code samples of data-sources functions, open the Samples folder in your AutoCAD Map 3D ObjectARX installation and navigate to Map Samples\DataSource.