Wow, that's a high poly pipe! One way you could do it, pretty much what you did, is make the pipe first, then select the faces where the curved frame will attach, and extrude along path.