# Trying to Get the BoundingBox Property but getting ReflectedIndexer

**URL:** <https://forum.dynamobim.com/t/trying-to-get-the-boundingbox-property-but-getting-reflectedindexer/69144>\
**Category:** Revit\
**Tags:** python\
**Created:** [October 11, 2021, 2:17am UTC](https://forum.dynamobim.com/t/trying-to-get-the-boundingbox-property-but-getting-reflectedindexer/69144 "2021-10-11T02:17:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![AmolShah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amolshah/32/103244_2.png) [@AmolShah](https://forum.dynamobim.com/u/AmolShah)\
**Post date:** [October 11, 2021, 2:57am UTC](https://forum.dynamobim.com/t/trying-to-get-the-boundingbox-property-but-getting-reflectedindexer/69144/2 "2021-10-11T02:57:55Z")

</div>

Hi @shuzmm,  
Welcome to the Dynamo Community.  
I would recommend you always search the forum first. What you are searching for would probably be answered in some or the other way if you dig a little deeper!

A similar topic as yours already exists:

> [@Python - BoundingBox property returns indexer. How to get Element.BoundingBox?](https://forum.dynamobim.com/t/python-boundingbox-property-returns-indexer-how-to-get-element-boundingbox/68156):
>
> I am trying to get the bounding box of an element so I can get the middle point. I thought this would be the Element Property Using this on a Room Element, python returns a IronPyton.Runtime.Types.ReflectedIndexer from which I can get the Max or Min points. import clr # import Revit Services clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager from RevitServices.Transactions import TransactionManager # import Revit API clr…

And a possible solution would be:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/0/90b20d41be5fe3008d15c621b005d28d6cfafe6b.png)

```auto
import clr
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)

clr.AddReference("RevitServices")
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument

def tolist(obj1):
    if hasattr(obj1," __iter__"): return obj1
    else: return [obj1]

def GetBB(tblks):
	BBoxArr = []	
	for tbs in tblks:
		bbox = tbs.get_BoundingBox(doc.ActiveView).ToProtoType()
		BBoxArr.append(bbox)
	return BBoxArr

TBlocks = tolist(UnwrapElement(IN[0]))
	
OUT = GetBB(TBlocks)

```

---

_[View the full topic](https://forum.dynamobim.com/t/trying-to-get-the-boundingbox-property-but-getting-reflectedindexer/69144)._
