Do you have the node where you set the rotation for the elements?
I did not see it in your graph, what node are you using for this?
I am sorry but I don’t understand your question. The node where I set the rotation for the elements correspond to the center (in a x,y plane) of each pile.
You have to rotate Revit elements, not dynamo geometry i think
So my question is which node you plan to use for rotating revit elements.