How can I use the GH script to ensure that beams are placed correctly when transferred to Revit (see image)?
The workflow is as follows.
Script 1: The geometry is generated from 2D AutoCAD. Parameters are added (e.g. L350x35) and baked together.
Script 2: Geometry is tapped and generated with RiR components in Revit.
Over 60% of beams are placed incorrectly in Revit. The corners (red) in particular are placed incorrectly.
I import all elements as beams, not columns.
General: There are exclusively and a lot of L beams.
Each curve is always the outer edge of an L-beam.
There are very few beams that are horizontal/vertical.
Over 95% of beams are sloped in two directions.
The main goal would be to transfer the geometry correctly to Revit.
Unfortunately, creating DerctShape, using IFCBeam or GeometyGym are not options.
I am very grateful for any tips.
Best regards,
Willy
Hello Japhy,
thank you for your response and your willingness to help.
It’s not possible to upload files (due to GER data-protection laws).
I’ll try to describe the workflow as clearly as possible:
Rhino8 and Revit2025
Workflow Rhino/Grasshopper
I import a DWG file that serve as template.
I have to clean up the DWG a bit since it comes from the engineers ;).
I use GH to generate the curve model, add parameters (e.g., curve = L350x35), and then bake it.
In Revit (using Rhino.Inside.Revit) I read that curve model and generate native geometry.
The problem is that the profiles in the Revit file are oriented incorrectly, and I’m wondering whether it’s even possible to control the orientation/rotation in the GH script.
Hello Muhammad,
thanks for your suggestion.
Do you mean that I should create and assign each curve a (text) parameter (0, 45, 90, 135, 180, etc.) so that it can be filtered and modified later?
But what happens if, for whatever reason, the elements are actually placed correctly?
I’ve thought about that as well, but my first idea, which I haven’t given up on yet , is to “rotate the curve”. Basically, to influence the position of future Revit elements (and there will be quite a lot) already in the first GH script.
Example for Traverse 1-3: if the curve = ±x/y then rotation (180°)
But maybe I just have too much “make a wish Willy”on my head.
@Willy_S I was saying you can use the rotation parameter the change the element orientation or you can use the element location component as change the orientation of the plane.
Hello @MSAwan ,sorry I haven’t replied for so long.
The daily tasks right before Christmas are killing me.
Which file would you like to have, all three?