C++
inline Acad::ErrorStatus acdbDxfOutAs2004( AcDbDatabase* pDb, const ACHAR* fileName, const int precision = 16 );
File
dbmain.h
Description
This functions saves the AcDbDatabase object pointed to by pDb to a DXF file whose name is fileName. The file is saved in AutoCAD 2004 format using the precision specified by precision.
Note The precision may also be set to -1 to change the output format from the default ASCII DXF format to the binary DXF format.
Returns Acad::eOk if successful.
If the AcDbDatabase object pointed to by pDb is in a partial open state, or if fileName is NULL, then the save fails, and Acad::eInvalidInput is returned.
Parameters
Parameters | Description |
---|---|
pDb | Input pointer to the AcDbDatabase object to write out as a DXF file |
fileName | Input name of the new DXF file to create (the .dxf extension is not added automatically) |
precision | Input number of bits of accuracy, in the range 0 to 16 |