C++
ACDBCORE2D_PORT Acad::ErrorStatus dxfOut( const ACHAR* fileName, int precision = 16, AcDb::AcDbDwgVersion dwgVer = AcDb::kDHL_CURRENT, bool saveThumbnailImage = false );
Description
This function creates a DXF file and returns Acad::eOk if successful.
Parameters
Parameters | Description |
---|---|
fileName | Input name or URL of the new DXF file to create (the .dxf extension is not added automatically) |
precision | Input Number of bits of accuracy, from 0 to 16 |
dwgVer | Input version to which the dxf file should be saved |
saveThumbnailImage | Input Boolean indicating whether to save thumbnail |
Notes
The precision may also be set to -1 to change the output format from the default ASCII DXF format to the binary DXF format.
The allowed values for dwgVer are:
AcDB::kDHL_1014 // R14
AcDB::kDHL_1015 // 2000
AcDB::kDHL_1800 // 2004
AcDB::kDHL_1021 // 2007
AcDB::kDHL_1024 // 2010
AcDB::kDHL_1027 // 2013
AcDB::kDHL_1032 // 2018
Links
Previous Declaration
Acad::ErrorStatus dxfOut(const ACHAR* fileName, int precision = 16, AcDb::AcDbDwgVersion dwgVer = AcDb::kDHL_CURRENT, bool saveThumbnailImage = false);