C++
Acad::ErrorStatus setPlotStyleName( const ACHAR* newName, const AcDbObjectId& viewportId );
Description
Sets a layer plot style override for the supplied viewport. You cannot change the global plot style through this method.
Returns an error status if the plot style cannot be found in the current plot style table, or if the drawing's PlotStyleMode is set to use color-based plot styles.
Parameters
Parameters | Description |
---|---|
newName | The plot style name you wish to set as an override. |
viewportId | The object id of the viewport. |