Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
LINESMOOTHING
Syntax
C++
OdInt16 LINESMOOTHING;
Type
OdInt16
Initial value
0
Read-Only
No
Saved In
Registry
Versions
2015+

 

The LINESMOOTHING variable switches anti-aliasing on or off for lines. 

 

Value
Description
0
Disabled
1
Enabled

 

Access Methods
OdDbDatabase::getSysVar()
OdDbDatabase::setSysVar()
 
OdDbHostAppServices::getLINESMOOTHING()
OdDbHostAppServices::setLINESMOOTHING()

 

For example, to get the value:

OdRusBufPtr pRb = pDb->getSysVar(L"LINESMOOTHING"); OdInt16 type = pRb->getInt16(); odPrintConsoleString(L"nAnti-aliasing status = %d", type); // or // odPrintConsoleString(L"nAnti-aliasing status = %d", pDb->getLINESMOOTHING());

For example, to set the value:

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

 

File: SysVarDefs.h 

Module: API Reference 

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