cart: empty [ Login ]

Can't read DWG-file

1 
Bogdan Eremia
1/18/2019 12:09 PM
Hi, the DWG-file attached can't be read by CadLib for unknown reason. DwgReader.Read return "Cannot resolve handle. " exception. The dwg file was created with CadLib. I'm using CadLib 4.0.38.123 Best regards, Bogdan
Wout
1/18/2019 2:20 PM
Hi, Please download the latest CadLib version from your resources in your profile. There were some broken object references in the file. I see that you created the DWG file with CadLib 4.0.38.123, do you have the original input file that was used to create this? I suspect there's a problem with writing the DWG file that caused this. Thanks, - Wout
Bogdan Eremia
1/18/2019 3:32 PM
thanks, I uploaded both files try { string dwgPath = @"C:\VSSources\BadDWg\InitialDwg.dwg"; string outDwg = @"C:\VSSources\BadDWg\Exported.dwg"; DxfModel model = DwgReader.Read(dwgPath); DwgWriter.Write(outDwg, model); model.Dispose(); model = DwgReader.Read(outDwg); } catch (Exception ex) { }
Bogdan Eremia
1/22/2019 11:18 AM
Hi, Do you have any news on this? This is time sensitive for us.... Thanks, Bogdan
Wout
1/22/2019 11:33 AM
I already wrote above there's a new CadLib version. - Wout
Bogdan Eremia
1/22/2019 12:24 PM
Hi, I downloaded the latest version 4.0.38.136,again, and the issue is still there. I will reattach those 2 dwgs. Thanks,
Wout
1/22/2019 12:35 PM
It was fixed in 4.0.38.137, released on 1/18/2019, it should be in your resources. Version 4.0.38.136 is from 1/15/2019 is from before your report, so it can't have the fix obviously. - Wout
1