Geometry aligned Bounding Box

Geometry aligned Bounding Box

zrodgersTSSSU
Advocate Advocate
2,045 Views
5 Replies
Message 1 of 6

Geometry aligned Bounding Box

zrodgersTSSSU
Advocate
Advocate

Hey everyone, I was wondering if there was a way like in dynamo to generate an align bounding box using a coordinate system? I found this and didnt know if something similar would be possible through the API.

zrodgersTSSSU_0-1623672233637.png

 

0 Likes
Accepted solutions (1)
2,046 Views
5 Replies
Replies (5)
Message 2 of 6

jeremy_tammik
Alumni
Alumni
Accepted solution

Not really, I'm afraid. In the Revit API, the bounding boxes are always axis aligned. That is what makes them so fast and efficient.

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 6

JeremyvU2GS6
Explorer
Explorer

Is this still the case now that dynamo has a Z only axis aligned bounding box? Is there an API call for that?

0 Likes
Message 4 of 6

jeremy_tammik
Alumni
Alumni

Don't know about Dynamo, I'm afraid. In Revit bounding boxes are aligned with the global coordinate system three cardinal axes X, Y and Z.

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 5 of 6

jeremy_tammik
Alumni
Alumni

Actually, the Revit API BoundingBoxXYZ class does indeed sport a Transform property:

   

   

I have not seen it used, though. It would be interesting to see and hear about usage examples of that.

   

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

JeremyvU2GS6
Explorer
Explorer

Thanks for the response. I want to elevate elements (curtain walls, windows, doors) to their exterior face. I know of a dynamo method to get only Z aligned BB around geometry to get a face I can use for crop regions etc. Transform will help thanks. Well I use that bounding box and an intersection plane of the element location to ensure its front on

0 Likes