Dear Specialists,
I have a problem with the Bounding Box Intersecting Filter.
This is my script:
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference("RevitServices")
from Autodesk.Revit.DB import Transaction
#load the Documentmanager out of library RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
#load the Current View (with Revit Services)
doc = DocumentManager.Instance.CurrentDBDocument
TransactionManager.Instance.EnsureInTransaction(doc)
#receive rooms
ROOMS_PRO = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Rooms).ToElements()
ROOMS_PRO_DB = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Rooms)
SCOPE_BOX = IN[0]
#rooms in scope box
ROOMS_SC = []
for R_ZOEKEN in SCOPE_BOX:
bb = R_ZOEKEN.BoundingBox
RVT = bb.ToRevitType()
outline = Outline(RVT.Min, RVT.Max)
filter = BoundingBoxIntersectsFilter(outline)
collector = ROOMS_PRO_DB.WherePasses(filter).ToElements()
ROOMS_SC.append(collector)
OUT = ROOMS_SC
The problem is that the script didnt find the second rooms, the middle of the rooms are in the scope boxes. The second one rooms cannot be find.
Could anyone help me?

