how do create a link with an external image

Use this forum to ask questions about how to do things in dxflib.

Moderator: andrew

Post Reply
Registered Member
Posts: 1
Joined: Mon Dec 06, 2010 1:46 pm

how do create a link with an external image

Post by AndyB78 » Mon Dec 06, 2010 1:52 pm

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.

User avatar
Site Admin
Posts: 6761
Joined: Fri Mar 30, 2007 6:07 am

Post by andrew » Mon Dec 06, 2010 10:01 pm

- 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

Post Reply

Return to “dxflib 'How Do I' Questions”