Can not open DXF file with Aspose.CAD


I get the following exception when I try to open the file from the archive attached:
“Can not read an image. The structure of the file is unexpected.”

The same file has no problems when opened in AutoCAD 2021. I’m using Aspose.CAD for .NET v. 20.4.0 and the code:
CadImage cadImage = (CadImage) Image.Load(filePath);

Thanks for any help.
Arnold (29.7 KB)


I have worked with the sample file shared by you and have created a ticket with ID CADNET-1104 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.