how do create a link with an external image

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

Moderator: andrew

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

how do create a link with an external image

Postby 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: 4164
Joined: Fri Mar 30, 2007 6:07 am

Postby 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

Return to “dxflib 'How Do I' Questions”

Who is online

Users browsing this forum: No registered users and 1 guest