Rebar spiral

Hello,

I am fairly new to dynamo and drying to create a spiral rebar that looks like the picture below. It is flat for about 270 degrees before it increases linearly in height for about 90 degrees, then goes to flat again for 270 and so on. How do you describe this geometry in dynamo? I was thinking I could use Rebar.Bycurve, but I need to figure out how to make the lines first. It is actually just a series of arcs, but I have trouble constructing the part where the arc increases linearly in height.

Help is much appreciated!

hi @mathia1510,

can you share your script?