cad image is not loading large files

658 views Asked by At

I am trying to load a .dwg file to convert from cad to pdf using below code:

using (var image = Aspose.CAD.Image.Load("fileName.dwg"))
{
    // process the drawing
}

But .dwg file is not being load by above code. It takes so much time for loading but nothing happens and process continues without any end.(I have uploaded file of 212 MB and waited for more than 1 hour). Please let me know how I can load file using Aspose.CAD.Image.Load

Note: I am using this code and process in asp.net webforms.

2

There are 2 answers

0
Dzhan On
  1. Update the nuggets to the latest version (currently : 22.4.0)
  2. Converting larger dwg files to png or jpg takes a long time, instead convert it to pdf first (can take 15sec) then convert the pdf file to png or jpg file.
0
Oleksii Gorokhovatskyi On

If you could share your file with us we might look why it loads so slowly or, probably, hanging at load. You can also use our official forum https://forum.aspose.com/c/cad/19 so we can provide instant response.

Disclosure: I work as Aspose.CAD developer at Aspose.