Simplest solution to this problem is to build a foundation on the ground first, then starting your machine/building layout. The first one will snap to the foundation snaps, then for every level above that, just start at the same point on each level so that each higher level will be laid out directly above the level below it.