# Filled Region from Room Parameter

**URL:** <https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028>\
**Category:** Revit\
**Created:** [September 22, 2017, 9:17am UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028 "2017-09-22T09:17:21Z")\
**Posts on this page:** 15\
**Page:** 2

<div class="post-metadata">

**Author:** ![Revit\_Noob](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Revit\_Noob](https://forum.dynamobim.com/u/Revit_Noob)\
**Post date:** [September 29, 2017, 1:07am UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/21 "2017-09-29T01:07:30Z")

</div>

I don’t intend to create the Filled Region via dynamo or thru excel coz it is way beyond my capability. The code to create a filled region into each room based on the Floor Finish Parameter is sufficient for me.

I don’t know if I can apply the same process to ceiling though.

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [September 29, 2017, 7:13am UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/22 "2017-09-29T07:13:01Z")

</div>

Done. This assumes that a Filled Region with the same Type Name as the _Floor Finish_ parameter is already defined in the RVT.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/2/4223abe2cc49ad4a4ec5786b75af5ef74aca814f.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/6/96995543a2c9d246aa0a210a007409d28950b4a8.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/c/0c626e35139ac116f8b3a4500734e3aeb0a09527.png)

[Revit\_Noob3.dyn](https://forum.dynamobim.com/uploads/short-url/hvDw4RrlmnNii61NsswwykNOvMl.dyn) (32.9 KB)  
[Revit\_Noob3.rvt](https://forum.dynamobim.com/uploads/short-url/mzES1EyJIDJkhbUy79EbMd6z2Qh.rvt) (1.3 MB)

I like this method because it gives complete control to the Dynamo user. Color Schemes are awkward to edit.

---

<div class="post-metadata">

**Author:** ![Revit\_Noob](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Revit\_Noob](https://forum.dynamobim.com/u/Revit_Noob)\
**Post date:** [September 29, 2017, 7:20am UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/23 "2017-09-29T07:20:36Z")

</div>

Superb! working as I want it to be. Thank you so much @truevis.  
I will study this code and hopefully learn from it

thank you again.

> I like this method because it gives complete control to the Dynamo user. Color Schemes are awkward to edit

Yes. That is why i prefer this workflow rather than using ColorSchemes.

---

<div class="post-metadata">

**Author:** ![D.JohnWick](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@D.JohnWick](https://forum.dynamobim.com/u/D.JohnWick)\
**Post date:** [October 2, 2017, 3:18pm UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/24 "2017-10-02T15:18:49Z")

</div>

> [@Revit\_Noob](#):
>
> That is why i prefer this workflow rather than using ColorSchemes.

Hello  
Thank you for your script. I am trying to work with it, but i don’t know how to creat element.category. Then script is error following below image.  
 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/5/154cab9ded98200f2b98c9d9eaaf0bd50493319c.PNG)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 2, 2017, 9:17pm UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/25 "2017-10-02T21:17:47Z")

</div>

I believe that the node in question is found in the excellent clockwork package.

---

<div class="post-metadata">

**Author:** ![D.JohnWick](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@D.JohnWick](https://forum.dynamobim.com/u/D.JohnWick)\
**Post date:** [October 3, 2017, 11:24am UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/26 "2017-10-03T11:24:42Z")

</div>

Thanks @jacob.small I found it in clockwork package

---

<div class="post-metadata">

**Author:** ![D.JohnWick](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@D.JohnWick](https://forum.dynamobim.com/u/D.JohnWick)\
**Post date:** [October 3, 2017, 11:52am UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/27 "2017-10-03T11:52:19Z")

</div>

Hi guy @jacob.small@truevis  
I am trying to work this script. I have a issue as below image. Why is the item of index 7 8 9 false?

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/e/feb5032bb9e284ec908ecc6c8221303a8648ee22.PNG)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 3, 2017, 12:05pm UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/28 "2017-10-03T12:05:04Z")

</div>

Try replacing the Y input with a string ‘Rooms’ and see if that fixes it.

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [October 3, 2017, 12:05pm UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/29 "2017-10-03T12:05:14Z")

</div>

@D.JohnWick Could you please start a new thread. We can’t have 2 solutions in one topic. Thanks!

---

<div class="post-metadata">

**Author:** ![D.JohnWick](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@D.JohnWick](https://forum.dynamobim.com/u/D.JohnWick)\
**Post date:** [October 3, 2017, 12:09pm UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/30 "2017-10-03T12:09:33Z")

</div>

I replaced Y input with string Rooms. It still is not working.

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [October 3, 2017, 2:09pm UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/31 "2017-10-03T14:09:50Z")

</div>

> [@D.JohnWick](#):
>
> I am trying to work this script. I have a issue as below image. Why is the item of index 7 8 9 false?

Try another **String from Object** after **Element.Category** to insure the data types are the same.

---

<div class="post-metadata">

**Author:** ![Revit\_Noob](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Revit\_Noob](https://forum.dynamobim.com/u/Revit_Noob)\
**Post date:** [March 2, 2018, 1:27am UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/32 "2018-03-02T01:27:34Z")

</div>

HI @truevis sorry to resurrect this thread…

I notice that though the code is working fine…after i save and close the file and run the code again in the same file as i have revisions, the regions are overlapping each other.

Is it possible to delete the previous region if there is any and put the new one in the room?

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [March 2, 2018, 4:00am UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/33 "2018-03-02T04:00:11Z")

</div>

I’d probably do a select all, delete, then run the graph again

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [March 2, 2018, 4:16am UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/34 "2018-03-02T04:16:14Z")

</div>

If there are other filled regions not from this script, would need to filter somehow. Can think of a couple methods, none that would be that good.

1. Assuming room size hasn’t changed can try for intersection within room boundingbox.
2. Some form of is equal to, variety of ways. Includes using surfaces created from perimeter, boundingbox, etc.
3. When you create the regions, include a parameter or comment so you can search later and delete all regions with that parameter.

---

<div class="post-metadata">

**Author:** ![rartis](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@rartis](https://forum.dynamobim.com/u/rartis)\
**Post date:** [August 7, 2020, 7:58pm UTC](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028/35 "2020-08-07T19:58:28Z")

</div>

Thank you for sharing this!  
I can’t seem to find the: ‘Element.Category’ and the ‘List.SubliststContain’ I can see you mentioned the first one was in the Clockwork package, but I can’t find it, do you know if I need to get a different version? Or where I can find them?  
Thank you!

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6c2cc6acbcbe5db7edff76b39b57319b7d1fe80c.jpeg)

[Previous page](https://forum.dynamobim.com/t/filled-region-from-room-parameter/15028.md?page=1)
