Is there a way to turn off the Cplane axis icon while a Python script runs?

I noticed that EnableRedraw(False) doesn’t hide the Cplane axis. Is there a specific method for doing this?

Thanks,

Dan

Hi @DanBayn, below does it for the current viewport’s cplane:

import Rhino
import scriptcontext
import rhinoscriptsyntax as rs

def DoSomething():
    
    # turns cplane axes OFF
    viewport = scriptcontext.doc.Views.ActiveView.ActiveViewport
    viewport.ConstructionAxesVisible = False
    
    point = rs.GetPoint("Point")
    
    # turns cplane axes ON
    viewport.ConstructionAxesVisible = True
    
    if point: rs.AddPoint(point)
    
DoSomething()

_
c.

2 Likes

Thanks Clement. I will give this a try.