Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
VSMONOCOLOR
Syntax
C++
OdString VSMONOCOLOR;
Type
OdString
Initial value
"RGB:255,255,255"
Read-Only
No
Saved In
Nondatabase, Quasi variable
Versions
2007+

 

The VSMONOCOLOR variable stores the monochrome tint of faces in the visual style for the current viewport. TrueColor value is set as follows: "RGB:XXX,XXX,XXX", where XXX is the color component value in the range 0 to 255. 

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"VSMONOCOLOR"); OdString tint = pRb->getString(); odPrintConsoleString(L"nMonochrome color = %s", tint);

For example, to set the value:

OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtString, L"RGB:128,128,128"); pDb->setSysVar(L"VSMONOCOLOR", pRb);

 

File: QuasiVarDefs.h 

Module: API Reference 

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