Project 3D Object on a plane
Place a plane on the axis you want (for instance x, z).

Add a shrinkwrap modifier to your mesh and set this plane as target object (mode = 'nearest surface point').



Of course you can also scale to zero along an axis... but the shrinkwrap allows to do it in a none destructive way and to project to any plane.