1: \begin{abstract}
2: We show that every $n$-quasiflat in an $n$-dimensional $CAT(0)$ cube complex is at finite Hausdorff distance from a finite union of $n$-dimensional orthants. Then we introduce a class of cube complexes, called {\em weakly special} cube complexes and show that quasi-isometries between their universal covers preserve top dimensional flats. This is the foundational towards the quasi-isometry classification of right-angled Artin groups with finite outer automorphism group.
3:
4: Some of our arguments also extend to $CAT(0)$ spaces of finite geometric dimension. In particular, we give a short proof of the fact that a top dimensional quasiflat in a Euclidean building is Hausdorff close to finite union of Weyl cones, which was previously established in \cite{kleiner1997rigidity,eskin1997quasi,wortman2006quasiflats} by different methods.
5: \end{abstract}