Profile from polyline (but with a twist)

Hi eveyone. I need to create a profile from a polyline (the top and bottom of a stairs 2D drawing as shown below).
image
The problem is that many other commands or graphs can only generate the profile from polyline if there is no vertical components. Is there a way to move the vertices of the vertical lines just a little (i.e. I have done this manually and 0.001 works fine) before generating the profile from polyline?
If I’m not being clear just ask me anything. I will upload the dwg that I’m practicing this. Thanks in advance.
Escaleras_Pedro_Caceres.dwg (1.9 MB)

ProfileFromPolyline.dyn (62.5 KB)

TRY THIS
FILE DYN FROM DYNAMO FORM