I am using Aspose.CAD V 23.12.0 as part of a .NET 8.0 Windows form - C#
Sadly, whenever I try to save an .dwg file using Image.Save() the file is unable to be opened by the viewer application (prior to saving it could open it).
I created a simple test function to achieve this where I make no alteration to the file itself, like this:
void SaveFile()
{
using (var image = Aspose.CAD.Image.Load(selectFile.FileName))
{
image.Save();
//image.Save(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "output.dwg"));
}
}
You can see in the above code that I commented out the line where I save it as a new file instead of just saving it; Both attempts ended in the same result - The file cannot be opened by the viewer.
Is there a known issue saving .dwg files?