ShowGrid

Shows or hides a view's construction plane grid.

Syntax

rhinoscriptsyntax.ShowGrid (view=None, show=None)

rhinoscript.view.ShowGrid (view=None, show=None)

Parameters

view

Optional.  String or Guid.  The title or identifier of the view to modify.  If omitted, the current active view is used.

show

Optional.  Boolean.  The grid display state to set.  If omitted, the current grid display state is returned.

Returns

Boolean

If show is not specified, then the grid display state if successful.

Boolean

If show is specified, then the previous grid display state if successful.

Example

import rhinoscriptsyntax as rs

view = rs.CurrentView()

if rs.ShowGrid(view)==False:

    rs.ShowGrid( view, True )

Also See

ShowGridAxes

ShowWorldAxes