Seems like I accidentally created the most convenient fridge tool to hold your pen or pencil on the fridge or other metal object (said by my wife).
Included are adapters for 10x10x10mm and 30x10x5mm magnets.
You can find manual on how to make an adapter for your own magnet size below.
Hole in the holder has designed dimensions 30,5x14,5x10,5 mm and I use outer adapter sizes of 30,1x14,1x10 mm.
So just create a 30,1x14,1x10 mm block in your 3D software (or in PrusaSlicer) and subtract a hole for your magnet from 30,1x14,1 side. On MK4 I use 0,15mm as a tolerance from all sides. So include tolerances based on your printer and filament setup.
I recommend 2 part epoxy glue (what I have tested with best results), but if you print from PETG, you can use PVC pipe glue, but contact side might not be so nice and smooth.

- printer: Prusa MK4S
- layer height: 0.2mm
- sheet: Powder coated
- nozzle diameter: 0.4mm
- print orientation: as on the picture
- material: White PETG
- supports: no need
- perimeters: 3
- solid layers (top/bottom): 5/4
If you want, @AR_3DPrint_1965246 made an extension to also hold a piece of paper.
(I don't need it, but might be useful for someone)
It can be found here: https://www.printables.com/model/1280543-stifthalter-mit-klemme-fur-notizen-oder-einkaufsze
I just use the “magnet power” to hold the paper in case it's necessary.
Autor oznaczył ten model jako własne oryginalne dzieło.