Share

AcDbDxfFiler::writeDouble

C++

virtual Acad::ErrorStatus writeDouble(
    AcDb::DxfCode code, 
    double val, 
    int prec = kDfltPrec
) = 0;

Description

This interface, when implemented, should first check the filer status. If Acad::eOk, then write out code and val and return the filer status. The decimal places of accuracy of val is based on prec.

The implementation of this function should follow that of the ObjectARX internal filers. It should:

  • Check the current filer status. If it's Acad::eOk, then continue, or else return the current status.
  • Write out the AcDb::DxfCode in code.
See the AcDbDxfFiler DXF Group Codes section for information on which DXF group codes are valid for doubles.
  • Write out val to prec decimal places. If prec is the default of kDfltPrec ( a value of -1) then the internal default precision is used. If this filing operation is for a DXFOUT command, the precision that you set when executing the DXFOUT command is considered the internal default.
  • Return an Acad::ErrorStatus value indicating the success or failure of the operation (use Acad::eOk to indicate success).

Parameters

Parameters Description
unnamed1 DXF group code to be written out
unnamed2 Double to be written out
unnamed3 Decimal places to use when writing out the double value

Links

AcDbDxfFiler

Was this information helpful?