# Finishing materials by room

**URL:** <https://forum.dynamobim.com/t/finishing-materials-by-room/61396>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [March 10, 2021, 4:33pm UTC](https://forum.dynamobim.com/t/finishing-materials-by-room/61396 "2021-03-10T16:33:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Behling](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/behling/32/104634_2.png) [@Behling](https://forum.dynamobim.com/u/Behling)\
**Post date:** [March 10, 2021, 4:33pm UTC](https://forum.dynamobim.com/t/finishing-materials-by-room/61396/1 "2021-03-10T16:33:43Z")

</div>

I’m trying to create a routine to get the material codes for the finishes of the rooms and put them in an room tag. However, it is not reliable. It’s getting the materials wrong. Take materials from distant rooms. How can I get the finishing materials from the rooms correctly?

[MATERIAL-TAGS.dyn](https://forum.dynamobim.com/uploads/short-url/vX8xb7qMvYoONUiGtoBAmZoJK6O.dyn) (633.3 KB)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [March 16, 2021, 12:57pm UTC](https://forum.dynamobim.com/t/finishing-materials-by-room/61396/2 "2021-03-16T12:57:45Z")

</div>

have you an example…

We fill all values regarding surfaces via shared Parameters in rooms, they are just strings that have to be updated! to get Values we use _package datashapes (Raybounce)_.

KR

Andreas
