I needed a hook to store the cable for the pendant on a CNC router. The controller for the CNC sits on a metal toolbox and I didn't want to drill into it so we made this one that connects with magnets. To make it so it's more robust to sliding around, I incorporated some rubber feet positioned so they sit just proud of the magnets by about .2mm. (see second photo) That way they take all the compressive force and have a higher coefficient of friction than the plastic. The hole recesses for the magnets and rubber feet are just cylinder subtractions in PrusaSlicer (not a part of the model) so it's easy to adjust them to fit the specific magnets you have on hand. The specific feet I used were 12mmx4mm tall. These on Amazon are equivalent: (aff link). The magnets I used were 5/8 OD x 1/8in thick neodymium (15.875x3mm). These are equivalent but .875 mm smaller in diameter: (aff link). If you have something similar on hand there's no sense buying more, just adjust the cylinder sizes in Prusaslicer so it matches what you have. Make the bumper cylinders .25mm less the true height of the bumper and make the magnets the true height of the magnets.
The author remixed this model.
Thickened base, adjusted top to be sloped, swap out screw holes for magnetic glue in pockets.