How to exclude door sweep from bounding box using revit API

221 views Asked by At

I have a revit file in which there are a few doors. When i try to extract the bounding box of the door then the sweep of the door is also included in the bounding box which i dont want. I just want the bounding box corresponding to the door itself. I am very new to revitAPI and C#. I would really appreciate if you guys can write some piece of code which can help me.

1

There are 1 answers

2
Matt On BEST ANSWER

Door sweeps are typically not shown in 3D. Have you considered asking for the 3D bounding box instead of the current view? (Pass a null into the BoundingBox/get_BoundingBox method).