Bounding Box of Tag

Someone went through and hit tag all doors and walls in our overall plans. We have unites and do not want everyone to show these tags as they are called out on the enlarged typical unit plan. We do however want all door and wall tags outside the units. My goal was to delete all door and wall inside the units and leave all others.

I tried Elements in Room from Archi-lab but it errs out saying “‘Location’ object has not attribute”.

Room.IsInsideRoom will take a point but Element.BoundingBox returns null and Element.Geometry Empty List. This is why I wrote the code above because I can get the Revit BBox min and max points. The section after where I reassemble the points was because my lack of python and the time crunch I was in. It’s not pretty but it worked.

Do you have any suggestions @john_pierson?

2 Likes