Merge Lines with same direction and points in common

Have you read this topic by @Vikram_Subbaiah
Grouping of Curves with Design Script

2 Likes