The problem of using aspose.cad to convert DWG to DXF

File dwg = new File(dwgPath);
String outFile = dwg.getAbsolutePath().replace(“.dwg”, “.dxf”);
LoadOptions loadOptions = new LoadOptions();
loadOptions.setSpecifiedEncoding(CodePages.SimpChinese);
CadImage cadImage = (CadImage) Image.load(dwgPath, loadOptions);
cadImage.save(outFile);
cadImage.close();

When I use version 20.9, the conversion of DXF is successful, but when I open the DXF file using gdal, it throws an exception when reading the data under AcDbSplit in the DXF file.
When upgrading aspose.cad to the latest version 24.3, the conversion of dwg to dxf fails with the following exception:
Exception in thread “main” com.aspose.cad.internal.Exceptions.NullReferenceException: Object reference not set to an instance of an object.
at com.aspose.cad.internal.fa.a.a(Unknown Source)
at com.aspose.cad.internal.fa.a.b(Unknown Source)
at com.aspose.cad.internal.fa.a.c(Unknown Source)
at com.aspose.cad.fileformats.cad.CadImage.c(Unknown Source)
at com.aspose.cad.DataStreamSupporter.a(Unknown Source)
at com.aspose.cad.DataStreamSupporter.save(Unknown Source)

@tianlong88,
Hi.
Please attach the initial DWG file so we can reproduce the issue and find the reason.

test.zip (1.8 MB)

hi! The file has been uploaded

@tianlong88,
Hello,
we can confirm the issue, unfortunately, we have created CADJAVA-11661 to find and fix the problems.

Hello, will the next version solve this problem?

@tianlong88,
we can not guarantee any time delivery for fixes in the scope of Free Forum support. It depends on the current issues in our roadmap and mainly on the complexity of the task. Right now we don’t have information about the source of the issue, the task is scheduled for the investigation.