How to Delete Duplicate Walls

I would expect this is a problem with the tree and how it is matched. Can you send us the definition?

The starting point of the problem is to remove duplicated curves without FLATTEN.
Is there a way to return to the existing DATA TREE after FLATTEN?
중복객체 삭제.gh (9.2 KB)

See attached.


Re_dup_line_removal.gh (9.1 KB)

Thank you so much! When I did “Flatten,” I thought the data was mixed up, but if I used the “Flatten” component, it would be maintained.^^