# Floor By Nested Loops

**URL:** <https://forum.dynamobim.com/t/floor-by-nested-loops/13358>\
**Category:** Revit\
**Created:** [July 21, 2017, 10:58am UTC](https://forum.dynamobim.com/t/floor-by-nested-loops/13358 "2017-07-21T10:58:07Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Giovanni\_Brogiolo](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@Giovanni\_Brogiolo](https://forum.dynamobim.com/u/Giovanni_Brogiolo)\
**Post date:** [August 20, 2017, 2:04pm UTC](https://forum.dynamobim.com/t/floor-by-nested-loops/13358/10 "2017-08-20T14:04:20Z")

</div>

Hi Greg,

I’ve adapted the python code written by Kulkul here [Filled Region from Room Boundary](https://forum.dynamobim.com/t/filled-region-from-room-boundary/3422/2) to accept an outer curve and a list of nested loops.

I’ve also used GroupCurves from archi-lab to arrange the curves in a continuous loop.

If you are working in the metric system you need to adjust the points scale before creating the filled region.

 ![FILLEDREGION1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/4/44234999ef3e867b042678552212cf4360e8071c.PNG) ![FILLEDREGION2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/5/a521a1aaaed06b52ccba3fb535f7d0485b8ecbe6.PNG) ![FRegionPython](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/9/a9913b571834e78f3da50e8b457f34a9142f18b3.PNG)

[FilledRegion03.dyn](https://forum.dynamobim.com/uploads/short-url/58yuFoirx9R7wR4SUq30xprCCCX.dyn) (18.1 KB)

---

_[View the full topic](https://forum.dynamobim.com/t/floor-by-nested-loops/13358)._
