DomCR / ACadSharp

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

Layer names don't set correctly in `Entities` and `CadObject` for DXF files after using reader #54

Closed eerFun closed 2 years ago

eerFun commented 2 years ago

Hi, I tried to read a dxf file by this package and distinguish every entity from its layer name, but unfortunately all Layer.Name in Entities had the same value: "0" - the default layer name. I also tried to use GetCadObject by their handler but cadObjects had the same result, too.

Thanks for your attention. I’m looking forward to your reply.

DomCR commented 2 years ago

Hi @eerFun,

Can you provide the version of the package, to make sure that it was not a version related issue. I'll open a branch to make the test more accurate about layer related and work with a fix.

Unfortunately I'll won't be available until October to work in this issue, apologies for the delay.

eerFun commented 2 years ago

Thank you for your quick response.

I was using the version 1.3.4-alpha, but today I upgraded my package to the latest version 1.3.5-alpha and unfortunately saw the problem still persists.

DJGosnell commented 2 years ago

@eerFun Can you provide a simplified DXF with this issue for review?

eerFun commented 2 years ago

@DJGosnell Yes, Of course. ImportCAD.zip