TECH NATION
TECH NATION

Reputation: 15

How to exclude door sweep from bounding box using revit API

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.

Upvotes: 1

Views: 240

Answers (1)

Matt
Matt

Reputation: 1096

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).

Upvotes: 1

Related Questions