At DESY the ALPS II experiment is being installed in the HERA tunnel to search for axion like particles. A laser beam will be injected into the magnetic field of a string of superconducting (s.c.) dipole magnets, available from the HERA proton storage ring, to produce axion like particles. After passing a light tight wall, the ALPs can reconvert into photons in a second string of HERA s.c. dipoles. The sensitivity of the experiment will be increased by two mode-matched optical cavities before and behind the wall. The dipoles for the HERA storage ring are curved, suited for stored proton beam. However, the curvature of the magnets limits the aperture and hence the performance of the optical resonators beyond a certain length. As the sensitivity of the search scales with the length of the magnetic field, the aperture for the optical resonators inside the HERA dipoles was increased by straightening the curved magnet yoke. The procedure of straightening the s.c. HERA dipoles is described in this report.