On factory floor 36 there are from left to right factory buildings 36, 136, 236, etc. (with default settings).
Each is offset by 512 tiles from the previous one, so if you're willing to use the teleport command, you can use
/c game.player.teleport({512,0},"Factory floor 36")
to reach the factory building you want to.