A method for manufacturing a pre-insulated skeleton framing segment for buildings of various dimensions, wherein the method comprises the steps of: f) manufacturing an assembly, in an assembly unit, the assembly having a frame and at least one compartment with a hollow space which is to be completely filled with a foam insulation layer, the assembly being a substantially closed assembly comprising a first and a second flat panel (3, 13), secured parallel to each other and at a distance from each other to the frame so that the frame is located between the first and the second flat panel (3, 13) for forming the hollow space between the flat panels (3, 13), the frame being a wooden or metal frame comprising a plurality of beams; and wherein the at least one compartment is provided with at least one opening which is made in the frame for insertion of a nozzle for injecting raw materials for forming the foam insulation layer; g) providing a data carrier with data of the at least one compartment to be filled, from which data a quantity of raw materials required for completely filling the hollow space of the at least one compartment can be determined; -fitting the data carrier on the assembly, a) receiving the assembly, with the data carrier fitted to the assembly, in a filling unit; b) reading data from the data carrier; c) determining a quantity of raw materials which are to be inserted in the at least one compartment for forming the foam insulation layer on the basis of the data on the data carrier; - inserting the assembly in a press, d) at least one nozzle inserting the determined quantity of raw materials in the at least one compartment for forming the foam insulation layer, and the press exerting compressive forces on the assembly during a predetermined period after insertion of the raw materials, for counteracting the forces exerted by the foam insulation layer on the assembly during its foaming an hardening; e) allowing the foam insulation layer to foam and harden in the at least one compartment during the predetermined period. f) manufacturing an assembly, in an assembly unit, the assembly having a frame and at least one compartment with a hollow space which is to be completely filled with a foam insulation layer, the assembly being a substantially closed assembly comprising a first and a second flat panel (3, 13), secured parallel to each other and at a distance from each other to the frame so that the frame is located between the first and the second flat panel (3, 13) for forming the hollow space between the flat panels (3, 13), the frame being a wooden or metal frame comprising a plurality of beams; and wherein the at least one compartment is provided with at least one opening which is made in the frame for insertion of a nozzle for injecting raw materials for forming the foam insulation layer; g) providing a data carrier with data of the at least one compartment to be filled, from which data a quantity of raw materials required for completely filling the hollow space of the at least one compartment can be determined; -fitting the data carrier on the assembly, a) receiving the assembly, with the data carrier fitted to the assembly, in a filling unit; b) reading data from the data carrier; c) determining a quantity of raw materials which are to be inserted in the at least one compartment for forming the foam insulation layer on the basis of the data on the data carrier; - inserting the assembly in a press, - inserting the assembly in a press, d) at least one nozzle inserting the determined quantity of raw materials in the at least one compartment for forming the foam insulation layer, and the press exerting compressive forces on the assembly during a predetermined period after insertion of the raw materials, for counteracting the forces exerted by the foam insulation layer on the assembly during its foaming an hardening; e) allowing the foam insulation layer to foam and harden in the at least one compartment during the predetermined period.