# Revit Scope box elements filters

**URL:** <https://forum.dynamobim.com/t/revit-scope-box-elements-filters/76974>\
**Category:** Revit\
**Tags:** revit, python, dynamo\
**Created:** [May 27, 2022, 2:44am UTC](https://forum.dynamobim.com/t/revit-scope-box-elements-filters/76974 "2022-05-27T02:44:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![krupal.patelEER7M](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@krupal.patelEER7M](https://forum.dynamobim.com/u/krupal.patelEER7M)\
**Post date:** [May 27, 2022, 2:44am UTC](https://forum.dynamobim.com/t/revit-scope-box-elements-filters/76974/1 "2022-05-27T02:44:28Z")

</div>

I am trying to filter elements in schedule/Quantities by scope boxes. I have multiple scope boxes In Revit project and it is taking a lot of time.

I needed help with dynamo/python to make process automatic.

thanks,

---

<div class="post-metadata">

**Author:** ![roshan.kerketta](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@roshan.kerketta](https://forum.dynamobim.com/u/roshan.kerketta)\
**Post date:** [May 27, 2022, 2:48am UTC](https://forum.dynamobim.com/t/revit-scope-box-elements-filters/76974/2 "2022-05-27T02:48:56Z")

</div>

To filter Elements using Scope Box, you can try creating a Filter based on the Scope Box, by converting the Scope Box to a Bounding Box and using the Bounding Box to filter out the specific set of elements.

---

<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:** [May 27, 2022, 10:48am UTC](https://forum.dynamobim.com/t/revit-scope-box-elements-filters/76974/3 "2022-05-27T10:48:04Z")

</div>

@roshan.kerketta , hi

Ok i did this way:

 ![2022-05-27_12h45_20](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/1/4118f1f082c35fce5052b311c79ab55edf7b0513.png)

[GetSolid.dyn](https://forum.dynamobim.com/uploads/short-url/7veHfQKY10En94TUs6eN0SVxqlg.dyn) (37.3 KB)

 ![SolidsCatchElements](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/1/8198d404584f9a5db426c741685155872f5b421d.png)

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [February 20, 2023, 10:44am UTC](https://forum.dynamobim.com/t/revit-scope-box-elements-filters/76974/4 "2023-02-20T10:44:15Z")

</div>

What is that error (in the _Cuboid_ node)? Seems i am not getting any items (in the _Intersect_ node) because of it(?).

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/1/d13e984d201f48cfacfca8b6dbbc8cac709dc88f.png)

---

<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:** [February 20, 2023, 10:52am UTC](https://forum.dynamobim.com/t/revit-scope-box-elements-filters/76974/5 "2023-02-20T10:52:53Z")

</div>

@bvs1982 ,

did you check list levels… …seems to be you have to flatten your input at the beginning, check it out.

KR

Andreas

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [February 20, 2023, 12:00pm UTC](https://forum.dynamobim.com/t/revit-scope-box-elements-filters/76974/6 "2023-02-20T12:00:15Z")

</div>

@Draxl_Andreas  
I reproduced your graph / screenshot and you also have the same error ;).

That being said i am leaning towards this approach at the moment.

> [@Create a Cuboid from 8 points](https://forum.dynamobim.com/t/create-a-cuboid-from-8-points/83969):
>
> Helllo Everyone, I want to create a cuboid by 8 points and there is already a post related to it which isn’t helping. If I use Element.BoundingBox then the output I need is not correct as it doesn’t take the rotation of the element. However I am able to get 8 corner points from a scope box and I just want a cuboid from these 8 points. so that I can do a Clash check in between the obtained geometry and centroid of all model elements to stamp the Scope Box name in Elements. please check the sn…
