DWG File with external references


I want to convert a dwg file to PDF. This file has external references that - I think- make the load fail.
Is there a way to ignore external references ?

Thanks for your help



I have observed your comments. Can you please share source file so that we may further investigate to help you out.


Hello, here’s how I convert with Aspose.CAD and the file concerned.
dwg.zip (272.5 KB)

public static byte[] Convert(byte[] fileContent)
                using (var msSource = new MemoryStream(fileContent))
                using (var msTarget = new MemoryStream())
    				using (var CAD_image = Aspose.CAD.Image.Load(msSource))
                                var rasterizationOptions = new Aspose.CAD.ImageOptions.CadRasterizationOptions()
                                    PageSize = new Aspose.CAD.SizeF(2200, 2200),
                                CAD_image.Save(msTarget , new Aspose.CAD.ImageOptions.PdfOptions() { VectorRasterizationOptions = rasterizationOptions });

                    return msTarget.ToArray();



I have worked with file shared by you using Aspose.CAD for .NET 18.8 and have been able to observe the issue. A ticket with ID CADNET-700 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with issue so that you may be automatically notified once issue will be fixed.