How to get BondingBoxXYZ of entire model?

How to get BondingBoxXYZ of entire model?

EyalRELJT
Participant Participant
414 Views
2 Replies
Message 1 of 3

How to get BondingBoxXYZ of entire model?

EyalRELJT
Participant
Participant

Hello,
I try to get a BoundnigBoxXYZ contains all elements in document.
I know that i can loop over all elements and get the minimum and the maximum points, but my question is if there is any simpler way to do that, like Revit know to create default section box that contains all elements in model.
Thanks!

0 Likes
415 Views
2 Replies
Replies (2)
Message 2 of 3

Mohamed_Arshad
Advisor
Advisor

Hi @EyalRELJT 

 

  There is no direct faster method to get complete bounding box of the model. I face the same issue for that I have implemented an workaround to increase the speed of calculation, Kindly follow the steps.

 

Steps to be followed

  1. Create a Struct for point and bounding box.
  2. Extract value from the Revit Bounding box in single thread and assign to the user defined created struct.
  3. Using multi threading calculate the Maximum and Minimum of the model. 
  4. Visualize the created model.

I hope this will speed up your process. I follow the same to optimize the bounding box computation.

 

Hope this will Helps 🙂


Mohamed Arshad K
Software Developer (CAD & BIM)