Shows or hides a view's construction plane grid.
rhinoscriptsyntax.ShowGrid (view=None, show=None)
rhinoscript.view.ShowGrid (view=None, show=None)
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. |
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. |
import rhinoscriptsyntax as rs
view = rs.CurrentView()
if rs.ShowGrid(view)==False:
rs.ShowGrid( view, True )