Box orientation + zoom all

Box orientation + zoom all

tomislav.peran
Advocate Advocate
393 Views
2 Replies
Message 1 of 3

Box orientation + zoom all

tomislav.peran
Advocate
Advocate

Hi, 

 

Does anyone knows the code on how to set the orientation box to the top view but then also to activate zoom all so that model, part in my case, is in the middle of the screen. 

 

So, the order would go -> 1. Select Top view on the orientation box

                                              2. Activate the command Zoom All (View tab)

 

Regards,

Tom

 

0 Likes
Accepted solutions (1)
394 Views
2 Replies
Replies (2)
Message 2 of 3

dalton98
Collaborator
Collaborator
Accepted solution

Is this what your asking?

Dim oCamera As Camera = ThisApplication.ActiveView.Camera

oCamera.ViewOrientationType = ViewOrientationTypeEnum.kTopViewOrientation

oCamera.Fit

oCamera.Apply
Message 3 of 3

tomislav.peran
Advocate
Advocate

Hey Dalton,

 

Yes indeed. Thank you 🙂

 

Tom

0 Likes