API Reference > OdDb Classes > OdDbDatabase Class > OdDbDatabase Methods > OdDbDatabase::getNearestLineWeight Method
OdDbDatabase::getNearestLineWeight Method
Syntax
C++
static OdDb::LineWeight getNearestLineWeight(int weight);
Parameters 
Description 
int weight 
[in] The lineweight value. 

Requires a lineweight and returns the nearest OdDb::LineWeight enum number for this database. For example, when the passed value is 8, the returned value is kLnWt009. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.