Use the Pick Path tool to indicate the path for a sweep or a swept blend.
To select edges of other solid geometry, such as extrusions or blends, click Pick 3D Edges on the ribbon. Or pick existing sketch lines, watching the status bar to know what you are picking. This method of picking automatically locks the sketch lines to the selected geometry and allows you to sketch the path in multiple work planes, hence allowing for a 3D path.