Switching back to Topview

Hi there,
I am able to activate a pageview without any problems.
If I want to switch back to the topview I cannot find any documentation for that.
I know that it’s in sc.doc.views but I am stuck here.

Thanks a lot,

Hi Tobias,
You are trying to set the “Top” view as the active one?

import Rhino

rhView_L = Rhino.RhinoDoc.ActiveDoc.Views.GetStandardRhinoViews()

for rhView in rhView_L:
    name = rhView.ActiveViewport.Name
    if (name == "Top"):
        Rhino.RhinoDoc.ActiveDoc.Views.ActiveView = rhView

The same can be achieved with calling the “SetActiveViewport” command:

Rhino.RhinoApp.RunScript("_-SetActiveViewport Top", False)
1 Like

Hi @djordje,
thanks a lot.
I also detected that one in the rhinoscriptsyntax.


1 Like