Get model extent?

Get model extent?

Anonymous
Not applicable
646 Views
3 Replies
Message 1 of 4

Get model extent?

Anonymous
Not applicable

Hello everybody!

 

I am tryin to get the model exttent in order to create its bounding box. It seems to me that it is not dificult, but I have been looking for it without result...

I have seen that the view has an "outline", but it does not get me that I am looking for.

 

Any help?

 

thanks in advance!

0 Likes
647 Views
3 Replies
Replies (3)
Message 2 of 4

tuuletin
Collaborator
Collaborator

Join all model elements to an assembly instance, take its bounding box, remove assembly instance? (maybe not the best way)

0 Likes
Message 3 of 4

Moustafa_K
Collaborator
Collaborator

I'd prefer that you get a bounding box for each element, then compar the mximum points of each to get the greatest value. do the same for the minimum point till you get the utmost minimum. crete the bounting box with the 2 points you got.

 

I hope that helps.

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1
0 Likes
Message 4 of 4

Anonymous
Not applicable

1.Zoom to extents

2. document.activeview.extents

 

Thanks & Regards

Sanjay Pandey

 

 

0 Likes