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
AndyB78
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
andrew
Site Admin
Posts: 9019
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

Dagata-mining
Registered Member
Posts: 1
Joined: Sun Apr 03, 2022 2:19 am

Re: how do create a link with an external image

Post by Dagata-mining » Sun Apr 03, 2022 2:21 am

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

Post Reply

Return to “dxflib 'How Do I' Questions”