Hi all. I want to create an outline from a linked element's bounding box to use in a BoundingBoxIntersectsFilter. My approach bellow works for some cases but where a link or element is rotated beyond a certain limit, the bounding box goes askew and the Outline(xyz, xyz) method returns an empty outline. I've tried scaling the bounding box up with an offset which fixes some cases, but not all of them. Some advice on solutions would be appreciated.
non-rotated link
rotated link
#get the elements bounding box
s_BBox = element.get_BoundingBox(doc.ActiveView)
#apply the link documents transform
s_BBox_min = link_trans.OfPoint(s_BBox.Min)
s_BBox_max = link_trans.OfPoint(s_BBox.Max)
#make the outline
new_outline = Outline(s_BBox_min, s_BBox_max)
#make the filter
bb_filter = BoundingBoxIntersectsFilter(new_outline)
Solved! Go to Solution.
Link copied