This bracket was inspired by the combination of zuspiel's Tinker-Friendly LACK Enclosure and andrewar's Door Handle keep closed. Links to these are included below. I use two of these brackets to keep the acrylic door for my LACK enclosure closed: one for each screw of the door handle.
zuspiel's Tinker Friendly LACK Enclosure: http://www.thingiverse.com/thing:2012384
andrewar's Door Handle keep closed: http://www.thingiverse.com/thing:36465
- Print the bracket and one or both caps. I recommend 50% infill for structural integrity and a cleaner finish. It won't add much time to your print.
- Insert your magnet into the cavity in the bracket, and cover with the cap. I've noticed that the caps seem to prefer a specific orientation even though they're 24mm x 24mm. Perhaps it's my 3D printer.
- For the pin cap, I recommend a line of superglue around the edges. For the screw cap, use (4) M3 x 6mm screws. I used cap head, but button head will also work fine.
- Mount to your suface and you're good to go!
My personal preference is the screw cap as it is both more secure and can be easily reopened, should you want to salvage the magnet later. However, both caps work so I leave the choice to you.