Locking trick box.
two versions rotated, and slide. the slide has an opening on the inside.
both cubes have a trick to opening.
uses two 6mm dia x 2mm long magnets that are imbedded the in print. and a M4 hex nut as the latch. a little tap in the right direction will slide the nut locking or unlocking.
make sure when you print that there is no support.
just before the layer that captures the magnet pause the print. I have found it is easiest to glue the magnet down. If you don't glue it down, it might stick to the print head. A good way to do this is a drop of super glue in the print, some accelerant on the magnet.
You can print print by object. But, two different objects, Bambu Studio does not allow you to add a pause to the print. The included profile has a pause for one of the parts to stop at the right time to put the magnet in.