Is there a way to orient structural frames perpendicular to each curve? Here is a screenshot of my unfinished script (including the script). I just do not know what to put in the ‘Value’. As you can see in the other screenshot, frames are not perpendicular.
Hi Japhy, thanks for your prompt response. I was trying to get the ‘Cross-Section rotation’ parameter and I missed including it. At this point, I only have these four frames in Revit and as you can see the angle of rotation for each beam is not correct.
The tricky part for you is going to be getting the correct vector direction to rotate to. The panels you are working with aren’t planar & you will have to approximate a vector from the angle of the adjacent face, then do some math to get the correct rotation. Perhaps a unit circle at the mid point to intersect the two faces. Branching is going to be tough align too (vector to member).
@Japhy@kike do you think there could be a way to use the actual surface vectors (unlike the diagonal panels that I have shown previously as an example)? For Rhino and visualization purposes, I have an actual surface with structural members swept along the diagrid curves (here is my script for that).
Look through some of the grasshopper threads on crease angle, or getting the angle between surfaces. I’ve seen very similar to what you are trying to do.
I am placing some beams by some curves, The curves consist of lines (Slanted) and arcs.
The beams for the lines go perfect, but the beams an the arcs are rotated 90 degrees visually. When I check the parameters of the arced beams, the cross-section rotation is 0. How is it possible that grasshopper places them 90 degrees rotated visually
Latest, downloaded it this morning, I am using Revit 2020, I will also check this in 2022
As for your result, This is the same as what I get, the only difference between your model and mine is that the crosssection rotation of your beams differ (which should happen).
If you turn them both to 0 you get something like this, which is what I desire
But what happends in the Revit UI and in Dynamo (and in previous versions of RI which I used in previous projects) is more desirable, because it is more predictable. I now have to manually rotate each beam either 90 degrees or -90 degrees because some beams apparently have a flipped work plane then others.
There is no logic in the beams placed with RI, thus not usable