Stretched wire with direct current magnetic measurements method is used for producing synchrotron radiation generation insertion devices. The method allows to measure and to minimize the first and the second magnetic field integrals. The paper focuses on the wire sag problem.