Mount enclosure with magnets

I have had this thought running through my head. The combination of hinges,magnets,velcro, and double ended studs with wingnuts . All this just to kill vibrations and make it possible to access battery compartment without tools when using lipos.

this could work if you had strong enough magnets and to keep the enclosure from sliding would be as easy as just making a wood frame to attach to the board that follows along the inside of the enclosure.