API Reference > OdDb Classes > OdDbLayerTableRecord Class > OdDbLayerTableRecord Methods > setLineWeight Method > OdDbLayerTableRecord::setLineWeight Method (OdDb::LineWeight, OdDbObjectId&)
OdDbLayerTableRecord::setLineWeight Method (OdDb::LineWeight, OdDbObjectId&)
Syntax
C++
void setLineWeight(OdDb::LineWeight kLnWtEnum, const OdDbObjectId& idViewport);
Parameters 
Description 
OdDb::LineWeight kLnWtEnum 
[in] Lineweight (value of the enumerator).  
const OdDbObjectId& idViewport 
[in] Object ID of the viewport in which the layer must have the specific lineweight. 

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 two arguments sets the specific lineweight for the viewport.

Example of Working with the Layer Record Object 

Specific Properties of Layers 

OdDbLayerTableRecord::lineWeight() method

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