The method comprises layer-wise constructing a component with a component feedthrough together with a building element by a generative manufacturing method, forming an interstice between the component feedthrough of the component and the building element, forming (S1) a retaining structure at the building element and/or the component for positioning the component feedthrough of the component in a predetermined position, and forming a structure rib between the component feedthrough of the component and the building element. The method comprises layer-wise constructing a component with a component feedthrough together with a building element by a generative manufacturing method, forming an interstice between the component feedthrough of the component and the building element, forming (S1) a retaining structure at the building element and/or the component for positioning the component feedthrough of the component in a predetermined position, forming a structure rib between the component feedthrough of the compon