Clash detection with linked model

i was trying to create a python code to detect the clash. its detecting the clash with first element. but its not entering to next object.

my code is here

Version:0.9 StartHTML:00000097 EndHTML:00001105 StartFragment:00000199 EndFragment:00001067 filterlist =
for du in ductlistin:
bbx = du.get_BoundingBox(doc.ActiveView)
ol = Outline(bbx.Min, bbx.Max)
bbxfilter = BoundingBoxIntersectsFilter(ol)
filterlist.append(bbxfilter)
es = wallCollector.WherePasses(bbxfilter).ToElements()

use this link

1 Like