Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
VSFACEOPACITY
Syntax
C++
OdInt16 VSFACEOPACITY;
Type
OdInt16
Initial value
(–60)
Read-Only
No
Saved In
Nondatabase, Quasi variable
Versions
2007+

 

The VSFACEOPACITY variable switches the preset level of transparency for 3D entities. The value can be in the range 0 to 100 percent. The value 100 is limpid, the value 0 is opaque. A negative value stores the transparency but turns off the effect. 

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"VSFACEOPACITY"); OdInt16 transparency = pRb->getInt16(); odPrintConsoleString(L"nTransparency level = %d", transparency);

For example, to set the value:

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

 

File: QuasiVarDefs.h 

Module: API Reference 

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