API Reference > OdDb Classes > OdDbLayerTableRecord Class > OdDbLayerTableRecord Methods > lineWeight Method > OdDbLayerTableRecord::lineWeight Method ()
OdDbLayerTableRecord::lineWeight Method ()
Syntax
C++
OdDb::LineWeight lineWeight() const;

Returns the lineweight of 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 actual lineweight can depend on the viewport in which the entity is rendered.

The same layer can have different lineweights in different viewports. Therefore this method is overdriven. The method without arguments returns the own lineweight of the layer.

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