Hello everyone.
I am trying to create a stirrup for a beam (just for practice) and am using the package “Dynamo Rebar” or “Dynamo for Rebar”.
I have input the data type that the node “rebar by curve” needs, but somehow the rebar style node and the rebar hook orientation node return a null output, then the rebar by curve node failed.
I also found that every time when I open the dyn. file, some nodes such as rebar style, rebar bar type, rebar hook orientation and rebar hook type would create one more output port.
Why would these happen? What am I missing here?
I found a quick fix in an old post:
https://forum.dynamobim.com/t/rebar-bycurve-and-rebar-style-errors/23181/25
I replaced that dll. file, but I got a warning result:
Moreover, I have a dyn. file from Autodesk University 2016 – Dynam(o)ite your rebar design, I tried to run it but got the same issues (nodes return a null output and one more output port created when reopen the file). But this file created curves in the model while my one didn’t, what’s the problem with the curves in my Dynamo file?
The Revit version of my model is 2023, Dynamo version is 2.13.
I created one stirrup in my model by using Revit rebar command to indicate the final stirrup I want.
Any help would be appreciated, thanks.
rebar script.dyn (25.1 KB)
stirrup for beam.rvt (7.0 MB)
Upgrade to the latest Dynamo for Rebar (DfR)
Delete all the nodes that are failing with double output ports
Pay attention to the required inputs of the node - if you hover over you can hopefully get the type
Use DfR node and code nodes with strings where appropriate
When the inputs match the expected types the node will work
Hi Mike, thank you for your help.
I upgraded the package to the latest version and wrote the script in a new file.
I finally got the rebars and no extra output port created when I reopened the file.
But I still have some questions regarding to this node:
The stirrup I want is a closed stirrup, but even I selected 4 edges and input a ‘stirrup/tie’ rebar style, I still couldn’t get a closed stirrup but 4 single bars.
When I first clicked the run button, the rebar were in one direction, and when I clicked the second time, the rebar turned to another direction, but the rebar hook direction was input ‘right’ all the time. So I am confused how to understand the rebar hook direction and the rebar direction.
The last one is the vector, is it the rebar distribution direction? But if we only create one bar, does it mean the vector is meaningless?
I reviewed the script and was able to achieve what you are attempting
Requires a bit of manipulation of the curves before creating
The Dynamo for Rebar package is quite old but seems to work - not sure about 2025+ on Dynamo 3
It even guesses the shape correctly
Hi Mike, which two faces did you select to create the stirrup? No matter which faces I pick, I can only get this bar:
Also, I found that I don’t have the 'PolyCurve.OffsetMany" node and the ‘PolyCurve.JoinedbyCurve’ node is slightly different from your one. I have searched online and got that these nodes are from Dynamo 2.16, however, mine is showing that Dynamo is up-to-date:
I have attached the dyn. file for your reference.
rebar script - new.dyn (33.1 KB)
Thanks.
I’m in R2024. Dynamo 2.13.1 has PolyCurve.Offset node
Hi Mike, I can get the stirrup now, but have you checked the cover? I found that the covers are not all the same.