Thin films and arrays of lines of magnetic CoNiFe alloy have been produced by electrodeposition. A magnetic field was applied during the electrodeposition process in order to induce a magnetic anisotropy in the sample. The dependence of the magnetic properties and the magnetic domain structures on the thickness of the films is reported. In addition to this, the magnetic properties and the domain structure of a thin film and an array of lines, with the same thickness and deposited in the same conditions, have been compared. An increase in the coercivity of the array of lines has been shown.