how do create a link with an external image

I tried to use the method “writeImageDef” but when I opened the dxf file with autocad the following error appears: “Unknown object type IMAGEDEF ignored”.

Which are the correct step to do add a background image in a dxf file?

Thanks in advanced for your help.

  • Write the image definitions inside the OBJECTS section of the DXF file (see DL_Dxf::writeObjects / writeObjectsEnd).
  • Write the image itself (writeImage) inside the ENTITIES section

Any updates on that?? Been strugling for a bit and tried this approach without any succesz