BetaBetaBetaGives the DIN 6885 parallel key for a shaft: the key's width and height, and how deep its keyway goes into the shaft and into the hub.
Example: a 20 mm shaft -> a 6 by 6 key, 3.5 deep in the shaft, 2.8 in the hub
The shaft's diameter and the unit
The key's and keyway's sizes in unit
The sizes of DIN 6885 form A parallel keys and their keyways, with no CAD kernel needed, in the unit asked for.
occt.parts.mechanical.keys.dinbuilds the keys as solids andocct.parts.mechanical.machining.dincuts their keyways.