Thank you Randal
The hole in your sheet metal should be a nominal 22mm. The mounting dimensions in your specification link give you everything you need to dimension the hole: It will be 22.5mm diameter, and needs a notch to prevent the pushbutton from rotating during installation. The 50mm dimension refers to the mushroom head itself.
More than likely, your sheet metal shop already has either a standard hole definition for their laser cutter which includes the keyway, or a sheet metal punch which does the hole and keyway all in one stroke.
Rather than asking us here in the soldworks forum, you should ask your sheet metal shop. They'll appreciate being included in the process and SHOULD be happy to answer a question from a new designer. If they have the punch already, they'll tell you to simply call out something like "standard 22mm P.B. punch" or whatever terminology that shop prefers.
Kris Hewes wrote:
....a 22 mm E-stop button, should my hole be 22 mm dia?
Be sure you check out the spec sheet, but one of the most common beginner mistakes that I see is CAD users thinking the shop floor can make perfect parts - just like the CAD software will do.
The shop floor cannot make a Ø22mm hole. Period!
The component maker cannot make a Ø22mm cylinder to go into that hole. Period!
There are tolerances associated with every dimension and manufacturing process.
The closer you hold those tolerances - the more expensive the part.
Even if the features could be manufactured down the atomic level at perfect 22mm, the parts would not fit together by hand. It would require a press to assemble the parts because both parts have atoms on the 22mm diameter circle.
Bottom line - always consider manufacturing tolerances and the clearances needed for assembly.