Production of prefab elements for timber-frame construction