Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
VSFACESTYLE
Syntax
C++
OdInt16 VSFACESTYLE;
Type
OdInt16
Initial value
0
Read-Only
No
Saved In
Nondatabase, Quasi variable
Versions
2007+

 

The VSFACESTYLE variable stores the face mode that defines how faces display in the current viewport. The value can be: 

 

Value
Description
0
Off – style is not applied.
1
Real – defines how the face would appear in the real world mode.
2
Gooch – uses cool and warm colors instead of dark and light to display the faces which might be shadowed and difficult to review in the realistic mode.

 

Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport. 

 

Access Methods
OdDbDatabase::getSysVar()
OdDbDatabase::setSysVar()

 

For example, to get the value:

OdRusBufPtr pRb = pDb->getSysVar(L"VSFACESTYLE"); OdInt16 mode = pRb->getInt16(); odPrintConsoleString(L"nFace mode = %d", mode);

For example, to set the value:

OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1); pDb->setSysVar(L"VSFACESTYLE", pRb);

 

File: QuasiVarDefs.h 

Module: API Reference 

Copyright © 2002-2022. Open Design Alliance All rights reserved.