Hi,
If dwg file is attached to dwg file as external reference then we can know with attribute autocad_xref_name. Is there any possibility to know if image is attached???
Pratap
Hi,
If dwg file is attached to dwg file as external reference then we can know with attribute autocad_xref_name. Is there any possibility to know if image is attached???
Pratap
Best answer by jovitaatsafe
Hi @gns388,
I checked in with our cad experts and I can confirm that image external references reading in as rasters is expected behaviour. In other words, while the image is an external reference, it will be read in as a raster entity, not an xref entity.
The path information is stored on the feature as 'autocad_raster_filename'. Unfortunately this will always be the full path if the raster was read successfully.
A potential workaround would be to move the dwg away from all referenced images, such as by placing the dwg in a separate parent folder, and then try to read it again. By moving the dwg drawing into a different folder, this will break the relative paths. So any external image referenced with a relative path will fail to read, and any absolute path will read successfully, outputting valid features. From there I expect you would be able to use a StringReplacer or other string transformer to fix the paths. Hope that helps!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.