Replace a broken line with a solid line (Came)

Hello

I'm just passing through :wink:

I don't remember how to turn a broken line into a continuous line so that I can have one object guided over another. Indeed, if you have a succession of lines and curves, it is impossible to do as for a cam path
In the meantime I created a spline but it's ugly and difficult to make the spline follow by snapping it on the broken lines.

Thank you Apluche