# Independent area material

**URL:** <https://forum.dynamobim.com/t/independent-area-material/64297>\
**Category:** Revit\
**Tags:** revit, clockwork, python, geometry, dynamo\
**Created:** [May 24, 2021, 6:15pm UTC](https://forum.dynamobim.com/t/independent-area-material/64297 "2021-05-24T18:15:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AM3D](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d/32/94052_2.png) [@AM3D](https://forum.dynamobim.com/u/AM3D)\
**Post date:** [May 24, 2021, 6:15pm UTC](https://forum.dynamobim.com/t/independent-area-material/64297/1 "2021-05-24T18:15:33Z")

</div>

Good morning.  
I have the need to be able to independently obtain the area of ​​each material for a specific purchase and calculation by area.  
I have used a node but it only gives me sums, which is not useful to me since I try not to add, but rather to show each one of the materials independently.  
Please someone have an idea …  
Thanks.

 ![Material area](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/d/1de32e4063eeb507906a8bb8a46954551ac42cf5.jpeg)

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [May 25, 2021, 7:46am UTC](https://forum.dynamobim.com/t/independent-area-material/64297/2 "2021-05-25T07:46:01Z")

</div>

Correct. This node is not looking for “Split Faces” and I think you used that to create the breaks in your wall.

There are methods in the Revit API which you can use to extract the paint materials of split faces, but you would need to use python for that or there needs to be a package which I don’t know of.

 ![000100](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/5/f597c598a1c0c20f6fa90a3b4b66297285ca94da.png)  
[ExtractPaintMaterialsArea.dyn](https://forum.dynamobim.com/uploads/short-url/qKfttXZhbmH0dawgHF79X0jQGBE.dyn) (37.6 KB)

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [May 25, 2021, 7:58am UTC](https://forum.dynamobim.com/t/independent-area-material/64297/3 "2021-05-25T07:58:20Z")

</div>

@Joelmick that’s a wonderful piece of Python, thank you very much!

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [May 25, 2021, 8:12am UTC](https://forum.dynamobim.com/t/independent-area-material/64297/4 "2021-05-25T08:12:07Z")

</div>

Feel free to implement it where ever you want!

---

<div class="post-metadata">

**Author:** ![AM3D](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d/32/94052_2.png) [@AM3D](https://forum.dynamobim.com/u/AM3D)\
**Post date:** [May 25, 2021, 4:13pm UTC](https://forum.dynamobim.com/t/independent-area-material/64297/5 "2021-05-25T16:13:44Z")

</div>

THANKS FOR THE SUPPORT …  
BUT THERE IS SOMETHING WEIRD HERE AND I DON’T UNDERSTAND WHY THAT HAPPENS …  
YOU COULD VERIFY IT …

 ![INDEX_0](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/8/18aa81aa901e3eb38260382fa36f79726599e478.jpeg)  
 ![INDEX_1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/d/dd13003fb82b0f6ed398db8fb821ef9f22dd4024.jpeg)  
 ![INDEX_2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/6/a60f59e4579656d3cd50c9abaed699ddeb4712ad.jpeg)  
 ![INDEX_3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/d/4dbf9ee1eb3c3b63c7a67db531e002164ee6d49e.jpeg)

[Areas painted independent.rvt](https://forum.dynamobim.com/uploads/short-url/dlM1tjoJ7SAPRzbNPAWXVRZqSBV.rvt) (2.0 MB)  
[Superficies pintadas.dyn](https://forum.dynamobim.com/uploads/short-url/byOvaF9q0a9j7S60S9Ijz6GyZ4g.dyn) (43.8 KB)

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [May 25, 2021, 6:53pm UTC](https://forum.dynamobim.com/t/independent-area-material/64297/6 "2021-05-25T18:53:22Z")

</div>

The order of the surfaces seems fine to me for both walls?

 ![000102](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/0/e01d31b9eacfa8d6d809bbbd6bd89ecb998a8c6f.png)  
 ![000103](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9b0c35ffbb3c5f48394f0cc8b08793239d077356.png)

What did go wrong was the area which came from Python. I used the wrong convertions units to calculate the area. That I did fix for you.  
[ExtractPaintMaterialsArea.dyn](https://forum.dynamobim.com/uploads/short-url/31JqPYi2Xkn2dUIrtSTvP5Q0frH.dyn) (23.3 KB)

 ![000105](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/c/fcef169e414bff92c6bc44104c44f824c5855da4.png)  
 ![000106](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/2/c2290ed5f0483758787fdcf2fbcd90ef0301037f.png)

---

<div class="post-metadata">

**Author:** ![AM3D](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d/32/94052_2.png) [@AM3D](https://forum.dynamobim.com/u/AM3D)\
**Post date:** [May 27, 2021, 4:11am UTC](https://forum.dynamobim.com/t/independent-area-material/64297/7 "2021-05-27T04:11:13Z")

</div>

How could I stay only with the materials that were assigned with the paint tool as well as the corresponding surfaces…???

Taking into account the progress so far …?

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [May 27, 2021, 6:41am UTC](https://forum.dynamobim.com/t/independent-area-material/64297/8 "2021-05-27T06:41:23Z")

</div>

your main wall has a certain material, extract that.  
You can now filter all the surfaces which are not this main material, which means they are painted.

---

<div class="post-metadata">

**Author:** ![AM3D](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d/32/94052_2.png) [@AM3D](https://forum.dynamobim.com/u/AM3D)\
**Post date:** [May 28, 2021, 7:03pm UTC](https://forum.dynamobim.com/t/independent-area-material/64297/9 "2021-05-28T19:03:24Z")

</div>

Good day.  
I have been presented with a special case with the category of columns and beams …  
When executing the python script it does not return any surface or material or area …  
could you help me please …  
Could be useful in beams

[COLUMNS AND BEAMS\_SURFACES PAINTED.dyn](https://forum.dynamobim.com/uploads/short-url/ulaeWcLBiYZN8ItS6ax6Y6emYmg.dyn) (32.3 KB)

[Model\_columns\_painted.rvt](https://forum.dynamobim.com/uploads/short-url/lKxqcubdXfIvfrwitDSFOd48WV5.rvt) (2.3 MB)

THX
