Bryan - I know this VERY Much will Deviate from your original question - but, here goes Nothin'...
Years ago, down in San Diego, at SD3D (which no longer exists) - I was doing a project for Manscapes (yeah - folks know that co. of course - which DOES still exist). I was printing this small kind of tubular part. And, they wanted a Nut buried in the piece. So, I created a shape that was the same over shape as a regular 6-sided nut, increased the shape a smidge, used that shape to cut a boolean hole into the main tubular piece. Then, when printing, after it printed to the top of the nut cavity - I paused the print job - dropped in the actual nut - continued printing - and it turned out PERFECT. I brought it to the folks at Manscape - and they liked it.
So, in theory - you can do an identical operation. Why? Cause there are cylindrical magnets out there that have a whole, and even inset conic shape to put in a screw, with a flat head - such that the top of the flat head screw will then be flush with the top of the magnet.
This is something I wanted to do a while back, as I started a personal project whilst at SD3D - but, sadly - I never managed to move forwards on that project...
What do you think???
Yes - it's a VERY Alternate version of attaching a magnet to a 3D Printed part!
-K