How to lock the vertical axis when placing imported objects?

This is a problem when I want to place custom trees on sloping terrain.
They should be perpendicular as with the Library trees.