Share

AcDbDxfFiler::writeEmbeddedObjectStart

C++

virtual Acad::ErrorStatus writeEmbeddedObjectStart();

Description

The implementation of this function should follow the implementation used by ObjectARX internal filers. The steps are as follows:

  • Write out the AcDb::DxfCode of AcDb::kDxfEmbeddedObjectStart (DXF group code 101.)
  • Suppress the writing out of the AcDb::DxfCode of AcDb::kDxfStart (DXF group code 0) for the embedded object that follows.
  • Write out a string data value of "Embedded Object" for the AcDb::kDxfEmbeddedObjectStart group code. This requirement is not negotiable.

This method must be called in the encapsulating object's dxfOutFields() method immediately before it calls the dxfOutFields() method of the embedded object. If multiple embedded objects are involved, this method must be called immediately before each embedded object's dxfOutFields() method is called. This method should be called only in the dxfOutFields() of the encapsulating object.

The base class implementation of this method is to abort the program. Therefore, it must be overridden in derived classes on which this method is expected to be called.

Returns Acad::eOk if successful.

Links

AcDbDxfFiler

Was this information helpful?