move an object on the x,y plane but staying in the 3D view

 From:  hadri1
11862.5 In reply to 11862.4 
Thnaks for the answer.

when you create the line as you did. it works. but if you take a line and move if in the surface afterwards, it does not.
ideally, i would like to lock the displacement in a plane (without having to create it each time).

EDITED: 13 Dec 14:20 by HADRI1