 AcDbEntity::setPlotStyleName (AcDb::PlotStyleNameType, AcDbObjectId, Adesk::Boolean) |
If the type argument is AcDb::kPlotStyleNameById, then 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 type argument is AcDb::kPlotStyleNameByLayer, then the entity will not store a plot style name. Instead, a flag in the entity will be set to indicate that the plot style name used by the AcDbLayerTableRecord referenced by the entity will be used by the entity. Because... more |
 AcDbEntity::setPlotStyleName (ACHAR*, Adesk::Boolean) |
This function searches the PlotStyleName dictionary for an entry with the name that matches newName and if found, sets the entity to use that plotStyleName entry. Because a lookup in the PlotStyleName dictionary is required, the entity must be database-resident for this method to succeed. The names ByLayer and ByBlock are allowed as well as user-defined names.If the entity owns subentities and doSubents == Adesk::kTrue, then the change will be applied to the subentities as well. For an AcDbBlockReference entity, this method will also update any associated AcDbSequenceEnd subentity regardless of the doSubents setting.Returns Acad::eOk if successful.... more |