Stud replacement is done with a bench top press device, special contoured brass, aluminum, or hard plastic or fiber support dies for the frame, and special punches that support and align the stud.
To remove the stud, a support die that's contoured to fit into the frame and support as much of the frame around the stud hole as possible is put on the base plate.
The frame is put on the die and a special punch with a face shaped to fit that particular stud is put in the press.
The press is used to press the stud out, which drops through the hole in the support die.
To install, a flat faced support die shaped to fit as large an area on the outside of the frame around the hole as possible is installed in the base and the frame is positioned.
The support die has a shallow hole to clear the excess stud head.
A hollow punch is installed in the press and the new stud is inserted into the punch and positioned in the frame hole.
The press base and die and punch aligns the stud with the frame at a perfect 90 degrees to prevent a tilted stud or a damaged or over sized frame hole, and the stud is pressed in.
The outside of the stud is contoured as needed or polished flat to the frame and the frame is refinished.
Some pointers:
NEVER try to drive a stud in or out with a hammer and punch, and never try it without the correct frame support dies or the frame will be bulged or distorted and the stud holes can be enlarged.
The insertion punch is not only hollow, the inner edge of the punch opening is contoured to fit the step on the stud so as not to stress the stud.