I have a door that swings open on it's own, so I made this magnetic latch and handle to hold it closed. It has the added bonus of a very satisfying snap when you shut the door.
It's a very easy print, but you need to know that it pauses twice. During the pauses, you need to place your magnets in the empty spaces. Be sure to pay attention to the polarity of your magnets as you're placing them in. The more magnets, the stronger the hold.