Here is a quick way to create a curved pipe in Dynamo by sweeping a circular profile along a “path”.
See the image below
Note that the circular profile was not “drawn” on the curve. It was first drawn at 0,0,0 for simplicity then “relocated” using the transform node. As always there is more than one way to perform this task and this only creates Dynamo Geometry. Happy Sweeping!