Hi all.
I am working on a script for months now and I have come to a point where I am out of ideas to research. I would appreciate some help if someone has any ideas, please.
I have a collection of perimeter walls. I have obtained their location lines so that I can take them to a drafting view, but the segments don’t close perfectly. So, after checking several alternatives, I settled on LineLoop.Merge.
This works well, but in testing the script, I produced a bump out on one of the facades. Those lines don’t close correctly, they either fail to close or they are trimmed in wrong pairs. Below you can see a side by side comparison between the Revit model and the drafting view:
in the unit to the right, the node works as intended, while on the left, it is merging the wrong segments:
It’s not like there is a lot to share about the script, but here is the part that involves the node:
I have tried everything I can think of:
A: Geometry.Trim (previously referencing the centroid of all walls as a group
B: List Reverse
C: Sort By function, curve length
D: Group Curves
So, if I don’t sort or do anything to the original list of curves:
the outcome is this:
it works well with no “bump outs”, but fails to trim the rest of cases.
Now, if I increase the margin in the LoopMerge node beyond the maximum distance between walls in a unit, in this case 38.42 feet, this is what happens:
Also, it doesn’t make any difference if I use the “ordered” list output instead
I don’t know, I am stranded. Thanks for your help