Hide construction plane grid

I’m trying to figure out how to hide the construction plane grid with rhinocommon:

Dim CP = New Rhino.DocObjects.ConstructionPlane
CP.ShowGrid = False

Not sure what to do with CP now… what is the next step please?

Thanks,
Sam

Here is how using Python. I’ll let you do the VB conversion.

import Rhino
import scriptcontext as sc

def test_toggle_cplane_grid():
    view = sc.doc.Views.ActiveView
    if view:
        show = view.ActiveViewport.ConstructionGridVisible
        view.ActiveViewport.ConstructionGridVisible = not show
        view.Redraw()
     
test_toggle_cplane_grid()

– Dale

1 Like

Thanks Dale