C++
Acad::ErrorStatus setPlotStyleName( const ACHAR* newName );
Description
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 name dictionary for newName, then Acad::eKeyNotFound will be returned.
The plot style name value is used for DXF group code 390.
Parameters
Parameters | Description |
---|---|
newName | Input plot style name string to be used by the layer table record |