How can I select all roofs in blender and change material
You can press ShiftG (Select Similar) > Normal, it will select all the faces that point in the same direction. You can extend its threshold in the Operator box. Then in the Properties panel > Material, choose the material and press Assign.