You should be able to draw the line representing the center of the tube. Basically just a line following the shape you want to bend to. Then on one end of the line draw a circle the size of the tube. Then extrude the circle along the line you made.(the line will be your path). Then draw the cube you want around it and subtract the tube. Hope this gets you going in the right direction.