I’m trying to create an Dynamo script that allows the user to put different spacing of stirrups in a beam (ex. in the first meter I want to put the stirrups with 200mm of spacing, then I want them with 300mm of spacing and in the last meter I want them with 250mm of spacing). I’ve tried many different ways, but I get just one stirrup in the beam. The last script is below:
I am trying to create a similar script just for a column and came upon the same problem.
I came up with a solution by creating the same rebar three times and adding them to a list to create an array of different rebars, spaces and distances.
It solved the problem but for some reason it all three distributions begun at the bottom of the column and doesn’t continue from the end of the last.
Appreciate if someone manages to figure out the problem.
Here’s a pic of the distribution in the column. Notice that there are two types and you can’t see it, but they are overlapping one another from the bottom point.
Need to find a solution for this!
I replied your code but I get this result (pic below). And this is what I got everytime before using the rebarcopybyvector. But as @Michael_Kirschner2 said, it might be because of the version of Revit/Dynamo that I’m using!
It seems that your result shows the first rebar of each change in distribution phases. If I am not mistaken, you need now to defined the distribution for each of those three rebars (have a look at my script).
Let me know if this helps.