Specifies the status of the viewport grid.
See Also | Example
The object or objects this property applies to.
TRUE: The grid is on.
FALSE: The grid is off.
The value of this property is stored in the GRIDMODE system variable. When using the SetVariable method to update the grid mode of the active viewport, you do not have to reset the viewport as the active viewport to see the change.
The grid is used only for visual reference. It is not plotted, nor is it considered part of the drawing. The grid origin is set by the SnapBasePoint method.
When the grid is turned on, it is set to the current grid spacing. To change the grid spacing, use the SetGridSpacing method.
When you turn the grid on or off on a viewport, the visibility of the grid will not change until the viewport is made active. If you toggle the grid of the active viewport, the visibility of the grid will not change until the viewport is reset as the active viewport. To set or reset the viewport as the active viewport, use the ActiveViewport property with the updated viewport object.