I noticed that EnableRedraw(False) doesn’t hide the Cplane axis. Is there a specific method for doing this?
Thanks,
Dan
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.
Thanks Clement. I will give this a try.