Square meters floorplan ue5 or ue4

Could you have every object as a blueprint actor and functions to calculate their own m2 and then add all these together and subtract it from the floor to get the final results in m2?

By using an enum on the master blueprint, you could switch between different calculations based on the type of the shape and then type in some float values that would be used in that function for calculations.