Error When Saving DXF File

Hello Aspose.Cad Community, I’m having some issues when saving a new file, here is the code where it is breaking and the dxf file so you can recreate the error.

plan issues 2.zip (1.5 MB)

    public MemoryStream DoSomething(Stream dxfFileStream)
    {          

        if (dxfFileStream == null) 
            throw new ArgumentNullException(nameof(dxfFileStream));

        var newFileStream = new MemoryStream();
        using (var dxfFile3 = (CadImage)Image.Load(dxfFileStream))
        {
          
         /*
		omitted magical code
		 */
           
            dxfFile3.Save(newFileStream); //here is where I get the exeption
            newFileStream.Position = 0;
        }

        return newFileStream;
    }

@IP1,
Hello, we have created CADNET-8599 task to investigate this issue.

A post was split to a new topic: Invalid contents of SVG

Hello @Oleksii.Gorokhovatskyi, I hope you are doing well

do you have any news regarding CADNET-8599 ?

@IP1,
Hi, thank you, I hope you are well too. Unfortunately, the task is not ready yet. We have fixed some initial issues but new problems occured instead. We are in progress of research and fixing.

1 Like

The issues you have found earlier (filed as CADNET-8599) have been fixed in this Aspose.CAD for .NET 22.4 update . This message was posted using Bugs notification tool by Oleksii.Gorokhovatskyi