How to make RhinoViewPort active?

Hi all,
how can a


be activated?
Or is there a way to get the RhinoViewPort Object directly from RhinoView ?
I need the Object from


to create a make2D

Thanks for any help

This works in Python:

import Rhino
import scriptcontext as sc

top_view = sc.doc.Views.Find("Top", False)
if top_view:
    sc.doc.Views.ActiveView = top_view
1 Like