Path. New design in inches, sketch on XY. Line (L) from the origin 4 in along X, then 3 in straight up. Round the corner with the sketch Fillet, radius 1 in. That leaves 3 in straight, a 90° arc and 2 in straight. Finish.
Profile. Sketch on YZ a 0.5 × 0.25 in rectangle centred on the origin. Finish.
Sweep. Profile: the rectangle. Path: the three curves. Orientation: Turn with Path. OK.
Pipe. Create › Pipe, and pick the same three path curves. Diameter 0.375 in, Type Hollow, Wall 0.035 in. OK.
Result. A 3/8 in tube with a 0.035 in wall, bent 90° on a 1 in centreline radius.
Tips
Start the profile on the path. Square to it. A profile away from the path sweeps offset from it.
Bend radius over half-width. Any smaller and the inside of the bend folds into itself. Real tube needs 2–3× the OD.
No gaps in the path. Curves must meet end to end.
Check yourself
Your swept bar folds into itself at the bend. Why?
The bend radius is smaller than half the profile’s width. Increase the radius.