Share

AcDbDxfFiler::writeBool

C++

virtual Acad::ErrorStatus writeBool(
    AcDb::DxfCode code, 
    bool val
) = 0;

Description

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

  • Check the current filer status. If it is Acad::eOk, then continue, or else return the current status.
  • Write out the AcDb::DxfCode in the first parameter.
  • Write out the value (a short) in the second parameter. The value should be either 0 or 1. If it is other than 0, 1 should be written out instead of its actual value.
  • Return an Acad::ErrorStatus value indicating the success or failure of the operation. Use Acad::eOk to indicate success.

A bool is an integer which is 16-bit on all supported platforms. See the AcDbDxfFilerDXF Group Codes section for information on which DXF group codes are valid for 16- or 32-bit integers.

Parameters

Parameters Description
code Input DXF group code to be written out
val Input boolean value to be written out

Links

AcDbDxfFiler

Was this information helpful?