Replies: 2 comments 2 replies
-
|
Hi @smile2k, The exception is not triggered during when it reads the 0 The name of the layers is stored under the code 2: 2 If you have multiple layers with the same name, the dxf is badly formed, you can manually delete one or change the name. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @DomCR, I used AutoCAD 2022 to open this file, and it seems to display the layer in red (which likely indicates that it's using the latest layer). So, should we throw an exception when a duplicate key is encountered, or should we overwrite the existing one? |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Hi @DomCR , I hope you are doing well.

I'm currently reading a DXF file using your library. An exception occurred when reading some of my sample files.
Here is a snippet of my sample.
The layer "RESC_ART" appears multiple times. When the library continues reading and attempts to add the next layer, it throws a "duplicate key 'RESC_ART'" error, as shown below.


My question is: Should the later layers overwrite the previous ones, or is there a better solution?
I'm not very familiar with this field, so I appreciate your patience as I try to understand things.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions