Align rotation beam on panels

i try to create dome but now i need to rotation sec beam as HZ beam like in pic to be align on panels i try but nothing work

here is a script
Dome With (25.1 KB)


One way you can do this is : get the middle of each beam, get the adjacent(s) panel(s), compute bisector vector, feed that in Tekla using Beam Rotation.

Dome With (21.2 KB)


Thank u