Filter Elements Materials and its Related Volume

Hello,
I’m trying to get the volume of some filtered materials of floor elements. Seems that boolean by mask won’t work in this case because element material volumes is not type/or instance parameters. So please any workflow to get the volume of the filtered materials. see the attached file for further clarity…
thank you
Taki,


CUI upload Dynamo forum.dyn (12.5 KB)