There are quite a few great battery dispensers out there, but the issue I had is that I tend to store my rechargeable batteries in a drawer instead of out on a shelf. These battery boxes keep your batteries from rolling around in a drawer and make them much easier to find. The lids are kept close with captive neodymium magnets which is oddly satisfying.
These battery boxes print well in both PLA and PETG. I have also printed them in various layer heights but had the best results are obtained using 0.2 or 0.25mm layer heights. Since the letters are printed face down on the bed, I had better success in reducing the first layer speed a bit to help ensure the first layer stuck properly. I had repeated success at 10mm/s for the first layer but your mileage may vary.
The magnet slots in these models accommodate 6x3mm neodymium magnets. This article describes the best way to insert pauses in the print to insert parts. The important thing to note is that the pause is inserted before the selected layer. This means that the layer to be selected is the bridging layer above the magnet slots. The base and lid have been designed so that all 4 magnets (2 for the base, 2 for the lid) can be inserted in the same pause. Just be sure that the magnets are oriented so that they attract each other instead of repel. If the magnets don't fit particularly tight, some superglue below the magnet will prevent the magnet from getting attracted to the screw on the bottom of the heat block when the extruder passes over the printed part.
Part of the download includes the source files for Fusion 360. The designs are parameter driven so most of the changes you might want to make should be possible by updating the values for the various parameters (e.g. Magnet size, battery count, etc)
The author hasn't provided the model origin yet.