# Level of Elements

**URL:** <https://forum.dynamobim.com/t/level-of-elements/12960>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [July 5, 2017, 1:15pm UTC](https://forum.dynamobim.com/t/level-of-elements/12960 "2017-07-05T13:15:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel.petrin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel.petrin/32/27974_2.png) [@daniel.petrin](https://forum.dynamobim.com/u/daniel.petrin)\
**Post date:** [July 5, 2017, 1:15pm UTC](https://forum.dynamobim.com/t/level-of-elements/12960/1 "2017-07-05T13:15:27Z")

</div>

Hello,

There are some elements or families that’s impossible to get it LEVEL.

For example: HANDRAIL, GENERIC MODELS BASED ON LINE…

Is there a way to do it?

I did a rotine, that work so good, but not for this families or elements.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/c/1c40afd81f25d5d6b27e8996ccc2d80d3a1a5d1d.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:** [July 5, 2017, 2:58pm UTC](https://forum.dynamobim.com/t/level-of-elements/12960/4 "2017-07-05T14:58:05Z")

</div>

Try creating bounding boxes using a scope box XY min and max points and elevation values from your levels. Then do a bounding box containment test on the centroid of the element’s geometry(s). A true means the center of that mass is in the bounding box associated with that level.

---

<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:** [July 5, 2017, 6:31pm UTC](https://forum.dynamobim.com/t/level-of-elements/12960/6 "2017-07-05T18:31:34Z")

</div>

Yes railings will still have that bug. But surface hosted and un-hosted components will return the correct values. System families in general (railings, walls, sweeps, roofs, floors, ducts, pipes, shafts…) could have issues with any given option discussed so far, but a combination of the requested could provide the right results if one were to tailor the graph to the modeling style used.

@daniel.petrin if nothing so far solves your problem, then you’re going to have to provide more feedback so we specifically know how the elements in question were created.

---

<div class="post-metadata">

**Author:** ![JIHWANLEE89](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@JIHWANLEE89](https://forum.dynamobim.com/u/JIHWANLEE89)\
**Post date:** [January 29, 2022, 5:40am UTC](https://forum.dynamobim.com/t/level-of-elements/12960/7 "2022-01-29T05:40:41Z")

</div>

Hi All,

There is a video showing how to get all type of levels from elements.

[Dynamo - Get All type of levels from Elements](https://www.youtube.com/watch?v=p_jBcfsc9Io)

I hope this is helpful!

JL
