Magnetic ToolChanger for a 3D printer