C++
inline Acad::ErrorStatus acdbSaveAsR14( AcDbDatabase* pDb, const ACHAR* fileName );
File
dbmain.h
Description
This function writes out the drawing in AutoCAD Release 14 format.
This function does not modify a Release 14 database indicated by pDb.
If all of the following conditions are true, you must call AcDbIndexFilterManager::updateIndexes() to get the spatial index data set up for the save:
- Your application is a non-AutoCAD based host application (in other words, a RealDWG host application) or you are saving a drawing that is not resident in the AutoCAD editor (in other words, an Object ARX application that created and appended to a new AcDbDatabase, or used AcDbDatabase::readDwg() to load the drawing into an empty AcDbDatabase).
2. The drawing being saved has a spatial index.
3. You are saving to an AutoCAD R14 or earlier format.
Failure to call updateIndexes() before the save will result in the save creating a corrupt drawing file. Calling updateIndexes() when not needed will not cause any harm, so it is recommended that you call it before saves unless you are absolutely sure that you do not need to. For some drawings, updateIndexes() can take some time to execute, and it is not always needed, so it is up to the application to decide when to call it.
Parameters
Parameters | Description |
---|---|
pDb | Database pointer |
fileName | File name |