Tube component number (20)

i have a problem with connection tube connection is rotate not perpendicular on yellow box like in picture
how i can solve it ?


Hi, since “auto” as the value for the up-direction doesn’t always work when inserting details and connections through the API, you will need to set the attribute zsuunta to set the up-direction axis yourself. If the objects are slanted you might also need to calculate the desired angles from your input axes in GH and then use the attributes zang1 and zang2 to set the angles for the component.

Some info on this page:

Cheers,

Sebastian

i try it but i face some problem for how i can get correct rotation angle about x and y of secondary member to put it on zang1 and zang 2
i try angle tekla computed by default but not work will so i want to know how i can make it correct

I did some trials to find a way to determine the required angles automatically from the beam axes. Not sure if it’s the most efficient way, but this setup seems to work:

ConnectionRotationZang1Zang2.gh (20.0 KB)

-b

2 Likes

thank you very much it’s worked

1 Like