How to implement the sweep blending function in Dynamo

I want to implement the sweep blending function in Dynamo.
What I want is this shape.
This is easy to make in Revit.
However, the profile changes frequently, and it takes longer as the altitude value changes.
So I want to implement this with Dynamo.
While studying by myself, I implemented it up to this point.

But it’s weird.
What I want is to be like left picture, but now it is like right picture .

So the question is:

  1. What more nodes should I use to place the profile at right angles to the floor plan rather than at right angles to the sweep line?
  2. And what node should I use to specify the profile shape 1 and 2?

I have attached all the files I used (Dynamo, Excel, dwg, revit files).
https://drive.google.com/drive/folders/1F2UD5IUIQJpz-drNitPIBUaEskkZTQJ3?usp=sharing

I need help from experts.