Place Beam rebar by vector

Hi everyone.
I am learning dynamo for revit. I want to place stirrup for beam. But it is error.
Step 1: I place a stirrup.
Step 2: I copy this stirrup to 3 location: 0.25-0.5-0.75 by use edge beam
Step 3: I use node: Rebar.SetLayoutAsMaximumSpacing to change single rebar to layout.
But it dont understand which direction to put.
How can i repair this error.
Thank so much

Can anyone help me?
Thank so much

Please post your dyn and revit file or a link to them

Revit file:
Dyn file:

Thank you so much :kissing_smiling_eyes::kissing_smiling_eyes::kissing_smiling_eyes: