There is a little protrusion so you can center it in a predrilled 10 mm hole and glue the magnet in. Designed for M4 countersunk screws.
The counterpart was glued directly in a 10 mm hole in the wood of my enclosure.
I printed it in ABS 0.20 mm layer height, 3 perimeters and 20% infill. PETG will work as well.
As you can see on the second photo, I was a little bit in a hurry when drilling the holes in the plexiglass :-). But it works perfectly. And next time I will put less glue too.
The author hasn't provided the model origin yet.