Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
LWDEFAULT
Syntax
C++
OdDb::LineWeight LWDEFAULT;
Type
OdDb::LineWeight
Initial value
OdDb::kLnWt025
Read-Only
No
Saved In
Registry
Versions
2000+

 

The LWDEFAULT variable stores the actual value used to display entities having "default" lineweight. You should specify all values in hundredths of millimeters subject to the OdDb::LineWeight enumeration. 

 

Access Methods
OdDbDatabase::getSysVar()
OdDbDatabase::setSysVar()
 
OdDbHostAppServices::getLWDEFAULT() – gets the default lineweight as an integer (enumeration) value
OdDbHostAppServices::setLWDEFAULT() – sets the default lineweight as an integer (enumeration) value

 

For example, to get the value:

OdRusBufPtr pRb = pDb->getSysVar(L"LWDEFAULT"); odPrintConsoleString(L"nThe default lineweight = %d", pRb->getInt16()); // or // odPrintConsoleString(L"nThe default lineweight = %d", pDb->appServices()->getLWDEFAULT());

For example, to set the value:

OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, OdDb::kLnWt040); pDb->setSysVar(L"LWDEFAULT", pRb); // or // pDb->appServices()->setLWDEFAULT(OdDb::kLnWt080);

 

File: SysVarDefs.h 

Module: API Reference 

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