ShowGrid

Shows or hides a view's construction plane grid.

Syntax

Rhino.ShowGrid ([strView [, blnShow]])

Parameters

strView

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

blnShow

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

Returns

Boolean

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

Boolean

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

Null

On error.

Example

Dim strView

strView = Rhino.CurrentView

If Rhino.ShowGrid(strView) = False Then

  Rhino.ShowGrid strView, True

End If

Also See

ShowGridAxes

ShowWorldAxes