Free Support Forum -

Failed to open AutoCAD files (Java 18.12 version)


We are getting quite a lot of failures opening certain AutoCAD files and it is difficult to find the cause. Sometimes a purge helps, but sometimes it still fails to open the file:

class com.aspose.cad.cadexceptions.ImageLoadException: Image loading failed. ā€”> class com.aspose.cad.cadexceptions.imageformats.CadException: File is incompatible with exporter, please try to convert it to Dxf: R12/R2007/R2010 or Dwg: R13/R14/R2000/R2004/R2007/R2010/R2013/R2014/R2015/R2018
com.aspose.cad.internal.eK.a.b(Unknown Source)
com.aspose.cad.fileformats.cad.CadImage.a(Unknown Source)
com.aspose.cad.fileformats.cad.CadImage.setLayers(Unknown Source)
com.aspose.cad.internal.fv.aU.load(Unknown Source)
com.aspose.cad.Image.a(Unknown Source)
com.aspose.cad.Image.load(Unknown Source)

The version is of the AutoCAD file is R2010 (AC1024). Iā€™m not trying to convert just the Image.load method.
Can i send some example DWG files?



I have observed the issue shared by you and request you to please first try using latest Aspose.CAD for Java 18.12 on your end. In case the issue still persist then please provide the sample files along with used sample code reproducing the issue. We will investigate the issue further on our end to help you out.