API Reference > OdDb Classes > OdDbViewport Class > OdDbViewport Methods > OdDbViewport::isGridAdaptive Method
OdDbViewport::isGridAdaptive Method
Syntax
C++
bool isGridAdaptive() const;

true if the grid is adaptive, false otherwise.

Checks whether the grid adapts to display fewer or more lines in the viewport than the value specified by the GRIDUNIT setting. An adaptive grid can be useful to avoid issues when a viewport is zoomed out too much and the grid becomes too dense, or on the contrary, when a viewport is zoomed in too much, there can be too few lines to display the grid.

Copyright © 2002–2021. Open Design Alliance. All rights reserved.