StructuralFraming.BeamByCurve - make horizonatal

Hi,

I am trying to place a structural framing family on a curve, the curve is not level in the Z dimension, the problem is I cannot get them to place straight horizontally, by setting the rotation,

I have even set up a rotation for the two profiles I used to make the beam

I just can’t get the rotation correct there is always a small error between the beams,
I have tried using the vector of the curve to the Z axis for the start and end and set the rotations there, no matter what I try there is always an error in the rotation, would anyone have an idea how I would keep these section level horizontally ?

Any help would be greatly appreciated, I am stumped

Regards

Alan

Sorry I should have included this

this is my nodes of how I am trying to set the rotations

Seems like it would be easier to adjust the Dynamo curve to be level rather than rotate the placed beam. You can just adjust the start and end points to be at the same elevation then create a new curve or use something like ProjectInputOnto (I think that’s what it’s called).