Parameters
- Obj
- Entity for which to set the name of the PrintStyle
- Val
- Name of the PrintStyle
You can only set the name of a PrintStyle if named PrintStyles are used in the drawing. If color-dependent PrintStyles are used in the drawing, then the PrintStyle is set to ByColor and is read only. To determine the type of PrintStyle used in the document:
- call IDocument::GetCommandOptionString and specify dsCommandOptionString_e.dsCommandOptionString_GetNmPrnStyl for the Var parameter in a project, macro, or script.
- click Tools > Options > System Options, expand Printing, expand Default settings, and examine Default type in the user-interface.
DraftSight V1R6.0