A CAD procedure of a cylindrical-faced electromagnet for typewriters