So, found out the hard way that you can’t apply heat to neodymium magnets. Had 16 magnets to press into a print (tool holder). Thought since the soldering pen I use for inserting threaded nuts into prints works so well, I would use it for this too. And it did work well, but now all the magnets are not magnets any more. Yup, heat will demagnetize them. Part is useless, so had to trash it. Found out something new, but wish I had heard about this beforehand.
The most common grades of neodymium magnets will demagnetize at around 60-80°C. Even if they could handle the temperature, they wouldn’t stay in place well since they are smooth.
Epoxy and super glue both work well for gluing the magnets in a hole. Rough up the back side if the magnet so the glue has something to hold on to though.