Rotation of a structural beam

Hi everyone, I am trying to create the bracing system of the photo in grasshopper with RiR, and as you can see the system is correct, but the rotation of the single beam is wrong.
So to correct the rotation I have derived the vertical line in grasshopper of the beam section and the normal of the face of the structure and used the set.parameter command for the rotation of the cross section, the rotation of the first beam is correct, but the other one is not, can anyone help me please?
To check I also set the rotation between the two lines, the starting vertical and the face normal, with the component geometry rotation and all the lines are fine, so I really don’t know why it doesn’t work, probably it’s some trick for the rotation to be set?



I’m going to start with just some element (in the second photo), and then deploy the others

Hi Amedeo,

We can help but will need more information.

Also note that Rhino.Inside has other implementations, Rhino.Inside - Revit has a dedicated forum category to keep things tidy.

@Japhy thanks for change the category, I don’t know it
What type of other information you think you need for help me

Minimum info is what version of Rhino you are using and Revit version.

post the curves/faces (internalized in GH) you are working with along with all the rules, ideally single simple example that has all the conditions your script is trying to deal wiht.

If you have a clean GH file (no 3rd party plugins), posting what you’ve done so far might be helpful as well.

Thanks