Remove duplicate PolyLine

Hello
How to clear Remove duplicat PolyLine .
I need to categorize groups.

2020-12-03_15-30-47|640x500

cell path-1.gh (32.2 KB)

Can you upload your file?

cell path-1.gh (22.1 KB)

Good news: rather easy via code (C#).

Bad news: rather impossible the other way (if real-time results are required … plus various tricky override checks like filtering via consequtive polyline node dupes etc etc ).


This works in 2 modes (see above) and gets the unique Polylines (or Lines if any), their indices and the connectivity (i.e. what taken poly has clones). If the conn Tree has empty branches the branch index is the index of a polyline with no clones.

So if you want that thing, notify (but is 100% code).

1 Like