Share

setPlotStyleName Method

Overload List

Method Description
AcDbLayerTableRecord::setPlotStyleName (AcDbObjectId&) This function sets the entity to reference the AcDbPlaceHolder that has the object ID newId. The AcDbPlaceHolder object must be owned by the plot style name dictionary. The plot style name dictionary's key for the AcDbPlaceHolder object is the plot style name string.If the function is successful, then Acad::eOk is returned.If the AcDbLayerTableRecord object on which this function is called is database resident and the database is in plot style legacy mode (in other words, AcDbDatabase::plotStyleMode() returns true), then this function will fail and will return Acad::ePlotStyleInColorDependentMode.If the object with object ID newId is not... more
AcDbLayerTableRecord::setPlotStyleName (AcDbObjectId&, AcDbObjectId&) 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.
AcDbLayerTableRecord::setPlotStyleName (ACHAR*) This function searches the plot style name dictionary for an entry with the name that matches newName and if found, sets the layer table record to use that plot style name entry. Because a lookup in the plot style name dictionary is required, the layer table record must be database-resident for this method to succeed. If the layer table record is not database resident, then the objectId version of this function must be used.Returns Acad::eOk if successful. If the layer table record is not database-resident, then Acad::eNoDatabase will be returned. If there is no entry in the plot style... more
AcDbLayerTableRecord::setPlotStyleName (ACHAR*, AcDbObjectId&) 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.

Was this information helpful?