Pattern geometry

Hello, I have two walls with two floors. The walls are unified. I want to see geometric maps.

If the maps is a planar, then block is cut. It not is correct . The origin of maps is in the file.

If the maps is parametric then it is correct. The block is at the origin of the wall. But on the second floor repeats the pattern because it not unify the pattern of the two walls. Then it repeat the origen in the second floor.

How I can move the origin of the pattern of the second floor?

See pdf.

Thank you.