Hi
I would like to add a raster to a DWG and have the path to this external reference set as a proper relative path.
When you write a raster to a DWG file, the AutoCAD writer automatically writes a PNG in the folder of your output DWG.
If you keep this PNG file next to your DWG, it will always open.
However, if you insert this drawing in a new drawing, the link to the image breaks.
This is caused by the path of the external reference (raster) that is not properly set a relative path.
If we look at the created path from FME in Autocad, we see this:
![](https://uploads-us-west-2.insided.com/safesoftware-en/attachment/5ec7d7bc-de2c-4d2b-ad0b-f60885835867.png)
If you change the path type to relative in autocad
![](https://uploads-us-west-2.insided.com/safesoftware-en/attachment/489c6c86-edd9-4f64-b313-b2a200594af3.png)
Then the saved path changes to:
![](https://uploads-us-west-2.insided.com/safesoftware-en/attachment/c13d548e-c03b-450a-a38e-4fe52d83a309.png)
I have tried to copy this in FME, but no effect:
![](https://uploads-us-west-2.insided.com/safesoftware-en/attachment/b8a1e91f-efb1-41a0-a1e9-7340f95ad806.png)
Any ideas?
Jasper