Convert a given elevation into a section

Hi all,

I have seen online several scripts that create room elevations from a given room. In my current company, we normally work with sections to create room elevations - which gives some advantages when the rooms are complex, as you can split the section and show the section cut through the legend plan. I was wondering if there is a way to transform an elevation view into a section with dynamo, so the section as outcome would cut where the room elevation cuts and show the same elevation extent as the room elevation.

Many thanks, in advance.

What have you tried so far? What are the differences in creating an elevation vs a section with the API? If you know what you need it becomes much easier to develop the logic to convert one to the other.