A method for producing a permanent (3a, 3b) or soft magnet, comprising at least the following steps: a) providing: - a solution containing at least one solvent in which a set of objects which bear a permanent magnetic moment is dispersed; - a substrate (1a, 1b, 1c, 1d, 1e, 1f) on which are fastened to the surface or within a cavity (4d, 4e) that it may comprise at least one first pad (2a, 2b, 2c, 2d, 2e, 2f) and a second pad (2a, 2b, 2c, 2d, 2e, 2f) which are made of a ferromagnetic material, said first pad (2a, 2b, 2c, 2d, 2e, 2f) include a face opposite a face of the second pad (2a, 2b, 2c, 2d, 2e, 2f), said opposite faces being parallel to each another; b) depositing the solution on the surface of the substrate (1a, 1b, 1c, 1f) or, where applicable, within its cavity (4d, 4e), such that the first and second pads (2a, 2b, 2c, 2d, 2e, 2f) are at least partially immersed in said solution; c) placing the substrate (1a, 1b, 1c, 1d, 1e, 1f) in a magnetic field oriented in a direction perpendicular to the faces of the first pad and of the second pad (2a, 2b, 2c, 2d, 2e, 2f) which are opposite and parallel to each other, such that at least part of the set of objects becomes densely grouped between said face of the first pad (2a, 2b, 2c, 2d, 2e, 2f) and said face of the second pad (2a, 2b, 2c, 2d, 2e, 2f) which are opposite and parallel to each other, and each of said objects aligns with the direction of the applied magnetic field, so as to form a permanent (3a, 3b) or soft magnet; d) optionally, performing at least one wash of the substrate (1a, 1b, 1c, 1d, 1e, 1f) with at least one solvent; e) optionally, evaporating all or part of the at least one dispersion solvent of the set of objects and, where applicable, of the at least one washing solvent. a) providing: - a solution containing at least one solvent in which a set of objects which bear a permanent magnetic moment is dispersed; - a substrate (1a, 1b, 1c, 1d, 1e, 1f) on which are fastened to the surface or within a cavity (4d, 4e) that it may comprise at least one first pad (2a, 2b, 2c, 2d, 2e, 2f) and a second pad (2a, 2b, 2c, 2d, 2e, 2f) which are made of a ferromagnetic material, said first pad (2a, 2b, 2c, 2d, 2e, 2f) include a face opposite a face of the second pad (2a, 2b, 2c, 2d, 2e, 2f), said opposite faces being parallel to each another; - a solution containing at least one solvent in which a set of objects which bear a permanent magnetic moment is dispersed; - a substrate (1a, 1b, 1c, 1d, 1e, 1f) on which are fastened to the surface or within a cavity (4d, 4e) that it may comprise at least one first pad (2a, 2b, 2c, 2d, 2e, 2f) and a second pad (2a, 2b, 2c, 2d, 2e, 2f) which are made of a ferromagnetic material, said first pad (2a, 2b, 2c, 2d, 2e, 2f) include a face opposite a face of the second pad (2a, 2b, 2c, 2d, 2e, 2f), said opposite faces being parallel to each another; b) depositing the solution on the surface of the substrate (1a, 1b, 1c, 1f) or, where applicable, within its cavity (4d, 4e), such that the first and second pads (2a, 2b, 2c, 2d, 2e, 2f) are at least partially immersed in said solution; c) placing the substrate (1a, 1b, 1c, 1d, 1e, 1f) in a magnetic field oriented in a direction perpendicular to the faces of the first pad and of the second pad (2a, 2b, 2c, 2d, 2e, 2f) which are opposite and parallel to each other, such that at least part of the set of objects becomes densely grouped between said face of the first pad (2a, 2b, 2c, 2d, 2e, 2f) and said face of the second pad (2a, 2b, 2c, 2d, 2e, 2f) which are opposite and parallel to each other, and each of said objects aligns with the direction of the applied magnetic field, so as to form a permanent (3a, 3b) or soft magnet; d) optionally, performing at least one wash of the substrate (1a, 1b, 1c, 1d, 1e, 1f) with at least one solvent; e) optionally, evaporating all or part of the at least one dispersion solvent of the set of objects and, where applicable, of the at least one washing solvent.