mateing a nut

How to mate a nut thread with bolt to properly align its travel withe the bolt?

SolidworksAssemblies