Close

Relief for ODA Team in Ukraine

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

 

The VSFACECOLORMODE variable stores the mode that defines how to calculate the face color. The value can be: 

 

Value
Description
0
Normal mode – face color is not used.
1
Monochrome mode – uses the color from VSMONOCOLOR system variable to display all faces.
2
Tint mode – uses the color from VSMONOCOLOR system variable to shade all faces by changing the tint and saturation of colors.
3
Desaturate mode – softens the color of all faces by reducing its saturation (30 percent).

 

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"VSFACECOLORMODE"); OdInt16 mode = pRb->getInt16(); odPrintConsoleString(L"nFace color mode = %d", mode);

For example, to set the value:

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

 

File: QuasiVarDefs.h 

Module: API Reference 

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