I was the one who originally asked for the invert option to be added and I've been using this feature so much I'm donating again Lars, thank you.
I've found that with some problem polylines the last resort is to manually extrude the pipe, however there are some tricks to cleaning up the polyline,
1. Use the CADTOOLS function to convert to 3D polyline and then
2. Use the CADTOOLS function to remove duplicate vertices
3. Use the CADTOOLS function to reverse direction (this worked for above sample)
4. Use the CADTOOLS function to simplify the polyline ie. some programs that generate 3D services lines add quirky kinks that can affect the Create 3D solids tool but generally straightening out the polyline by removing kinks less than 1 to 10mm solves this and does not materially affect the design.
The table edit function is also handy for inspecting for small kinks