You can easily use the weldments feature to create a pipe like the following picture. I don't use sweep to do it because sweep is more complicated. If you just want a pipe or solid beam, you will find weldments is a good choice.
Besides, you don't have to draw a 3D sketch to draw the line. You...