Share

AcDbDwgFiler::writeBoolean

C++

virtual Acad::ErrorStatus writeBoolean(
    AcDb::DxfCode code, 
    Adesk::Boolean val
);

Description

Deprecated. 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.
  • Write out val (an int). val should be either 0 or 1. If it's anything other than 0, then 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 Boolean is an integer which is 32-bit on all supported platforms. See the AcDbDxfFiler DXF Group Codes section for information on which DXF group codes are valid for 32-bit integers.

Parameters

Parameters Description
code DXF group code to be written out
val Boolean to be written out

Links

AcDbDxfFiler

Use Instead

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

Was this information helpful?