The generated DWG file cannot be opened in AutoCAD 2018

Aspose.CAD for .NET v23.12.0. The DWG file is just two connected straight lines
Code statement:
CadImage image = (CadImage)Image.Load(sourceFilePath); //sourceFilePath old file name
image.Save(dwg_fullname);//dwg_fullname new file name

After saving the DWG, when opening it with AutoCAD software, there is an error in the file content. Do you need to perform a repair. Ignoring the loss of line segments on the drawing after opening. If the original file is still a thread or an instance, then there is no problem. But it’s usually not very likely,

My requirement is to perform cadXdata on the blocks in the drawings Save after modifying the DataList.

I don’t know if there are any other ways to save CAD to export

@zxxiao2019,
Hi.
Please provide the entire code example and the initial DWG file so we can run it and reproduce the problem.

Debug.zip (54.2 KB)

The compressed package contains the original code and the testing DWG file. There are two DWG files, one containing only two lines and the other containing multiple segments of lines

@zxxiao2019,
Thank you for the details, we have created CADNET-9745 to investigate this issue.