How to get the BoundingBox that corresponds to the shape of the Family

How to get the BoundingBox that corresponds to the shape of the Family

dwchaeZ22KW
Participant Participant
526 Views
1 Reply
Message 1 of 2

How to get the BoundingBox that corresponds to the shape of the Family

dwchaeZ22KW
Participant
Participant

Hello, I would like to inquire about BoundingBox.

 

As you can see on the left, the area of the BoundingBox is almost similar to the shape of the Pipe.

However, the BoundingBox on the right image has a much larger area than its Pipe.

 

It seems that this happens only for Pipes(probably for System Families).

For FamilyInstance, it seems that they always have a same size for BoundingBox, even if they are rotated.

 

Is there a way to know the area of the Family, which always corresponds to its shape, regardless of it being rotated or not?

 

Thank you.

 

dwchaeZ22KW_0-1688954052649.png

 

0 Likes
Accepted solutions (1)
527 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni
Accepted solution

No, this does not only happen for pipes. This happens for all kinds of objects that have different dimensions in different directions and are placed at an angle to the cardinal axes. For instance, a vertical wall at a 45 degree angle in the XY plane will exhibit the exact same behaviour. This behaviour is intentional. The Revit bounding box is always aligned with the cardinal axes. That makes it extremely fast and efficient to work with. In wikipedia, they call this an axis-aligned bounding box:

  

https://en.wikipedia.org/wiki/Minimum_bounding_box#Axis-aligned_minimum_bounding_box

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open