DomCR / ACadSharp

C# library to read/write cad files like dxf/dwg.
MIT License
411 stars 116 forks source link

DxfWriter failed to write entities. #411

Open zhang-917917 opened 2 months ago

zhang-917917 commented 2 months ago

I will first use DwgReader to read. dwg files, and entities are recorded in CadDocument. Please refer to the picture. 1723169693699

But after I wrote the CadDocument to the. dxf file using DxfWriter, the entities did not exist. I can't see any content even when I open it in AutoCAD. Use the JS DxfParser library to parse the length of the entities array to 0. 1723169781262

This is my code: 1723169889367

I have tried multiple DWG files, and only one of them with a size of 4M has this issue.

DomCR commented 2 months ago

Hi @zhang-917917

Could you provide the file that is causing the error? or at least a similar one. Without the specific example I don't know if I'll be able to help.

Thanks.