I am trying to construct a 2D truss which consists of multiple lines (assemblies) which are divided with different lengths. The line segments’ end points are connected with each other to produce the diagonal braces.
I maganed to change the diagonal orientations for the whole structure, but my main goal is to change it individually for every assembly (A1-A3 in the picture)
My thinking is to make a multiline data panel, which consists of as many numbers as assemblies I have, and the values would determine the orientation.
The problem is that the number of assemblies also varies (but it is a finite number, mostly 2-3-4), and I can’t figure out the management of the branches. I tried it with explode, but this way you have to adjust the outputs based on the number of assemblies.
I also attach the code which is now suitable for orientation changes for the whole structure but not for individual assemblies.
Bracing_2D.gh (15.9 KB)