Share

AcDbLayerTableRecord::setPlotStyleName

C++

Acad::ErrorStatus setPlotStyleName(
    const AcDbObjectId& newId, 
    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
newId Input the plot style object id you wish to set as an override.
viewportId The object id of the viewport.

Links

AcDbLayerTableRecord

Was this information helpful?