API Reference > OdDb Classes > OdDbLayerTableRecord Class > OdDbLayerTableRecord Methods > plotStyleNameId Method > OdDbLayerTableRecord::plotStyleNameId Method (OdDbObjectId&, bool*)
OdDbLayerTableRecord::plotStyleNameId Method (OdDbObjectId&, bool*)
Syntax
C++
OdDbObjectId plotStyleNameId(const OdDbObjectId& idViewport, bool* pIsOverride = 0) const;
Parameters 
Description 
const OdDbObjectId& idViewport 
[in] Object ID of the viewport for which the plot style ID should be obtained.  
bool* pIsOverride = 0 
[out] Pointer to the Boolean variable in which this method saves the result: True if it is the specific plot style previously specified for the viewport, or False if it is own plot style and the layer does not store a plot style for the specified viewport. 

Returns the ID of the plot style object associated with the layer record object (DXF 390) or OdDb::kNULL when the layer is not associated with plot style. This plot style is used when the PlotStyle property of an entity belonged to this layer is set to ByLayer value. The actual plot style can depend on the viewport in which the entity is rendered. 

 

Specific Properties of Layers 

OdDbLayerTableRecord::plotStyleName(), OdDbLayerTableRecord::setPlotStyleName() methods

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