The Deep Underground Neutrino Experiment (DUNE) at Fermilab is one the most challenging next-generation experiments in the field of neutrino physics. It will feature two detectors for a detailed study of neutrino oscillations using an unprecedentedly intense neutrino beam. The two detectors are a Near Detector located on the Fermilab site, <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$574\,{\mathrm{m}}$</tex-math></inline-formula> away from the neutrino generation, and a Far Detector in South Dakota, <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$1300\,{\mathrm{km}}$</tex-math></inline-formula> away. Among the three elements of the Near Detector, designed for the best understanding of the neutrino beam and neutrino interactions on argon, ND-GAr is a High-Pressure gaseous Argon TPC surrounded by a calorimeter, in a <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$0.5\,{\mathrm{T}}$</tex-math></inline-formula> magnetic field. The needed magnetic field is transverse to the neutrino beam direction and the solenoid will have a 7 m diameter, 8 m long warm bore. To minimise the material budget along the particle path a thin superconducting solenoid with a partial yoke has been designed. The design of this magnet is tightly bound with the mechanics of the detector, resulting in an unprecedented design. In this paper we present the up-to-date magnetic design and a detailed study for the mechanical integration for this magnet.