Sloped Pipes from detail line


Dear Fellow Users,

I have a task to convert all detail lines to pipes with slope. I have used MEP Pipes to lines package to successfully route pipes, when it comes to slopes I have some trouble.

Images would explain the problem better,

What Should I do to get the new Z point as my starting point ?



Progress so far,…

I have specified a fixed slope, the Z values of in between lines seems to be incorrect ?

Help required if I have to make it a poly curve or sequence, and how do it do that ?

Attached Dynamo File for reference:
wip_slope_from_line_02.dyn (31.3 KB)