Production of rotary switches