Dynamo can be used to Set the Cross-Section Rotation parameter for multiple beams.
In this example, I am creating purlins using 'Beam System' in Revit, then using Dynamo to set the Cross-Section Rotation for all the Purlins in the Beam System so that they follow the curve profile.
Selecting the curved members as supports (Be sure to set it to 3D in the Properties)