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:
And a possible solution would be:
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)