Replace right view with left view in python and Rhinocommon

Hello,

I need help to replace right view with left view with python and rhinocommon

thanks in advance
Aleksandar

With the Right view active, run this;

import Rhino
import scriptcontext as sc

view = sc.doc.Views.ActiveView
projection = Rhino.Display.DefinedViewportProjection.Left
view.ActiveViewport.SetProjection(projection, "Left", True)
view.Redraw()

– Dale

Thanks!