API Reference > OdDb Classes > OdDbAbstractViewportDataForDbViewport Class > OdDbAbstractViewportDataForDbViewport Methods > OdDbAbstractViewportDataForDbViewport::setGridOn Method
OdDbAbstractViewportDataForDbViewport::setGridOn Method
Syntax
C++
void setGridOn(OdRxObject* pViewport, bool gridOn) const;
Parameters 
Description 
OdRxObject* pViewport 
[in] Input pointer to the viewport object.  
bool gridOn 
[in] Input grid usage flag. 

Controls the grid for the specified viewport object.

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