Share

AcDbDxfFiler::writeResBuf

C++

virtual Acad::ErrorStatus writeResBuf(
    const resbuf& rb
);

Description

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.

When an objectId is to be contained in a resbuf structure, it must be converted to an ads_name and stored in the resbuf's resval.rlnameads_name array.

  • Call the appropriate filer writeXxxx method to handle the data type contained in the rb resbuf. Pass rb.restype as the AcDb::DxfCode value and the appropriate field of rb.resval as the data.
  • Return an Acad::ErrorStatus value indicating the success or failure of the operation (use Acad::eOk to indicate success).

Parameters

Parameters Description
unnamed Resbuf structure to be written out

Links

AcDbDxfFiler

Was this information helpful?