API Reference > OdDb Classes > OdDbLayerTableRecord Class > OdDbLayerTableRecord Methods > setLineWeight Method > OdDbLayerTableRecord::setLineWeight Method (OdDb::LineWeight)
OdDbLayerTableRecord::setLineWeight Method (OdDb::LineWeight)
Syntax
C++
void setLineWeight(OdDb::LineWeight kLnWtEnum);
Parameters 
Description 
OdDb::LineWeight kLnWtEnum 
[in] Lineweight (value of the enumerator). 

Sets the lineweight for the layer record object (DXF 370). This lineweight is used when the Lineweight property of an entity belonged to this layer is set to ByLayer value. The initial value is kLnWtByLwDefault by default. The same entity can be rendered using different lineweights in different viewports. 

 

The same layer can have different lineweights in different viewports. Therefore this method is overdriven. The method with one argument sets the own lineweight of the layer.

Example of Working with the Layer Record Object 

Specific Properties of Layers 

OdDbLayerTableRecord::lineWeight() method

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