-
Found non-unique entity handle #559AC, data validation is required.
Found non-unique entity handle #559AD, data validation is required.
Found non-unique entity handle #559AE, data validation is required.
Found non-unique entity handle #559AF, data validation is required.
Found non-unique entity handle #559B0, data validation is required.
Found non-unique entity handle #559B1, data validation is required.
Found non-unique entity handle #559B2, data validation is required. How should I clear the alert, or write a program to skip this |
Beta Was this translation helpful? Give feedback.
Answered by
mozman
May 12, 2024
Replies: 1 comment 3 replies
-
You can't do very much (with ezdxf), this is a broken file because handles have to be unique. If its a DXF R12 file you can remove the handles by:
If its a newer DXF version you can try a real CAD application to recover the file. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's hard to stop users from doing stupid things when the data format allows for a lot of stupid things.
In this case you are trying to assign entities from modelspace to a new block, but each entity can only be assigned to one layout. The
add_entity()
method is a low level tool and should only be used if you know what you are doing.There exist a method for moving entities to between layouts: BaseLayout.move_to_layout()
And no, there is no way to prevent this from happening in the first place, as adding an entity to a second layout can be an intermediate step in a larger workflow:
ezdxf
is a tool for programmers, not an end-user application!