Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
LIGHTINGUNITS
Syntax
C++
OdInt16 LIGHTINGUNITS;
Type
OdInt16
Initial value
2
Range
0 ... 2
Read-Only
No
Saved In
Database
Versions
2008+

 

The LIGHTINGUNITS controls the type of lighting that is used and its unit of measurement. 

 

Value
Description
0
Standard lighting with no lighting units.
1
Photometric lighting with US units.
2
Photometric lighting with international units.

 

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

 

For example, to get the value:

OdRusBufPtr pRb = pDb->getSysVar(L"LIGHTINGUNITS"); OdInt16 type = pRb->getInt16(); odPrintConsoleString(L"nLight type = %d", type); // or // odPrintConsoleString(L"nLight type = %d", pDb->getLIGHTINGUNITS());

For example, to set the value:

OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1); pDb->setSysVar(L"LIGHTINGUNITS", pRb); // or // pDb->setLIGHTINGUNITS(1);

 

File: SysVarDefs.h 

Module: API Reference 

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