# BoundingBox

**URL:** <https://forum.dynamobim.com/t/boundingbox/40356>\
**Category:** Geometry\
**Created:** [September 5, 2019, 3:30pm UTC](https://forum.dynamobim.com/t/boundingbox/40356 "2019-09-05T15:30:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shibujoseukken](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@shibujoseukken](https://forum.dynamobim.com/u/shibujoseukken)\
**Post date:** [September 5, 2019, 3:30pm UTC](https://forum.dynamobim.com/t/boundingbox/40356/1 "2019-09-05T15:30:40Z")

</div>

how to get the min and max values from an element using python code.

element.BoundingBox.

---

<div class="post-metadata">

**Author:** ![maciek.glowka](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/maciek.glowka/32/70695_2.png) [@maciek.glowka](https://forum.dynamobim.com/u/maciek.glowka)\
**Post date:** [September 6, 2019, 12:48pm UTC](https://forum.dynamobim.com/t/boundingbox/40356/2 "2019-09-06T12:48:40Z")

</div>

Hi,

it is kind of weird property…it is indexed, but not by integers (0, 1, etc.)  
You pass a view object as an index, like so:

```
import clr

#The inputs to this node will be stored as a list in the IN variables.
e = UnwrapElement(IN[0])
view = UnwrapElement(IN[1])
output = []

bb = e.BoundingBox[view]

#Assign your output to the OUT variable.
OUT = [bb.Min,bb.Max]

```

I could not pass a None value however - as you could with get\_boundingbox(None)
