A method for machining at least one switch cabinet, comprising the steps: - providing at least one switch cabinet which is constructed in several parts and comprises at least one removably mounted component; - disassembling and removing the removably mounted component from the switch cabinet; - machining the disassembled and removed component and providing the machined component for reassembly on the associated switch cabinet; and - re-assigning the machined component provided for reassembly to the corresponding control cabinet, wherein the at least one switch cabinet has an individual machine-readable switch cabinet identification and the at least one removably mounted component has an individual machine-readable component identification, which are assigned to one another, wherein re-assigning of the component to the switch cabinet comprises machine-reading of the machine-readable identifications and bringing together the component and the switch cabinet which have the mutually assigned identifications (101, 201), and wherein providing or disassembling and removing the removably mounted component comprises generating a first data set describing a target processing state of the component, the first data set being associated with the component via the component identification, and storing the first data set for remote access, characterized in that the first data set comprises mechanical design information of a hole pattern for a switchgear to be created in the switch cabinet or for the assembly of a switch cabinet air conditioner, wherein the manufacturing of the removably mounted component comprises the mechanical processing of the removably mounted component for manufacturing the hole pattern. - providing at least one switch cabinet which is constructed in several parts and comprises at least one removably mounted component; - disassembling and removing the removably mounted component from the switch cabinet; - machining the disassembled and removed component and providing the machined component for reassembly on the associated switch cabinet; and - re-assigning the machined component provided for reassembly to the corresponding control cabinet, wherein the at least one switch cabinet has an individual machine-readable switch cabinet identification and the at least one removably mounted component has an individual machine-readable component identification, which are assigned to one another, wherein re-assigning of the component to the switch cabinet comprises machine-reading of the machine-readable identifications and bringing together the component and the switch cabinet which have the mutually assigned identifications (101, 201), and wherein providing or disassembling and removing the removably mounted component comprises generating a first data set describing a target processing state of the component, the first data set being associated with the component via the component identification, and storing the first data set for remote access, characterized in that the first data set comprises mechanical design information of a hole pattern for a switchgear to be created in the switch cabinet or for the assembly of a switch cabinet air conditioner, wherein the manufacturing of the removably mounted component comprises the mechanical processing of the removably mounted component for manufacturing the hole pattern.