How to stop moving when two surfaces are touching?

I am working with a assembly.It has a two parts.

parts have coincident mates.

I want to stop movement when one surface (1) touch with another surface (2)?

It's same as Collision detection.But I want it permanently apply for assembly.

How can I do this?

Thank in advance

SolidworksAssemblies