API Reference > OdDb Classes > OdDbLayerTableRecord Class > OdDbLayerTableRecord Methods > setPlotStyleName Method > OdDbLayerTableRecord::setPlotStyleName Method (OdString&)
OdDbLayerTableRecord::setPlotStyleName Method (OdString&)
Syntax
C++
OdResult setPlotStyleName(const OdString& sPlotStyleName);
Parameters 
Description 
const OdString& sPlotStyleName 
[in] Plot style name as non-empty string. 

Sets the name of the place holder object for the layer record object (DXF 390). This method associates layer and plot style. The name is an OdString instance. This plot style is used when the PlotStyle property of an entity belonged to this layer is set to ByLayer value. The same entity can be rendered using different plot styles in different viewports. 

 

The same layer can have different plot styles in different viewports. Therefore this method is overdriven. The method with one argument sets the own plot style of the layer using the plot style name.

Example of Working with the Layer Record Object 

Specific Properties of Layers 

OdDbPlaceHolder class 

OdDbLayerTableRecord::plotStyleName(), OdDbLayerTableRecord::plotStyleNameId() methods

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