Infinite loop in method “Image.Load”
I don’t know the cad version of the cad file
I thought it might be a problem with the version, so I saved it as the 2013 version
and it works!
“Aspose.Cad” version is 23.2.0 ( tried also latest version 23.6.0 )
public static stream ConvertToSVG(Stream dwgFileStream)
{
if (!Image.CanLoad(dwgFileStream)) throw new Exception();
using MemoryStream svgFileStream = new MemoryStream();
using var image = Image.Load(dwgFileStream);
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions()
{
PageWidth = image.Width,
PageHeight = image.Height,
ExportAllLayoutContent = true,
AutomaticLayoutsScaling = false,
};
image.Save(svgFileStream, new SvgOptions()
{
VectorRasterizationOptions = rasterizationOptions
});
return svgFileStream;
}
Let me ask you a few questions.
1. Is there any option timeout-exception for “Image.Load” function
2. Is there a separate cad version supported by Aspose.CAD?
3. How to save a file back to a specific cad version by Aspose.CAD?
Since the drawing file is an asset of another company, the person in charge of the company has to send it directly through e-mail, so could you tell me the e-mail to receive it?
@Heewoong_Lee,
Hi.
You can send it here. Please, post message in this topic when sent so I can check. Just as a note: we are not interested in the entire content of the file, we need only the content that preserves the issue. If this is possible, you can remove all data that is not about the problem.
@Heewoong_Lee
Thank you, file received, I can confirm the issue.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CADNET-9289
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Thanks, Where can I check the progress of the issue?
@Heewoong_Lee,
you can see status of the issue at the bottom of this page.
The “CADNET-9289” issue is not registered in the 23.8.0 release note, but it seems to work fine in that version, but is it resolved but missing from the note?
If it’s resolved, I want to renew my license.
@Heewoong_Lee,
Hello.
Yes, it seems to be missing in Release Notes but already delivered. We are sorry for this inconvenience.
I deeply appreciate your service. Thank you so much for helping me.
1 Like