Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1 REPLY 1
SOLVED
Reply
Message 1 of 2
dwchaeZ22KW
285 Views, 1 Reply

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

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

 

1 REPLY 1
Message 2 of 2
jeremy_tammik
in reply to: dwchaeZ22KW

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report