SetPrintStyle Method (IEntityHelper) Send Feedback
See Also 
Obj
Entity for which to set the name of the PrintStyle
Val
Name of the PrintStyle
Sets the name of the PrintStyle for the specified entity.

Syntax

Visual Basic 
Sub SetPrintStyle( _
   ByVal Obj As System.Object, _
   ByVal Val As System.String _
) 
C# 
void SetPrintStyle( 
   System.object Obj,
   System.string Val
)
JavaScript 
SetPrintStyle( 
   Obj : Object,
   Val : String
)
COM native C++ 
HRESULT SetPrintStyle( 
   IDispatch* Obj,
   BSTR Val
) 
C++ 
DSRESULT SetPrintStyle( 
   dsObject* Obj,
   const dsString& Val
) 

Parameters

Obj
Entity for which to set the name of the PrintStyle
Val
Name of the PrintStyle

Remarks

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.
 

See Also

Availability

DraftSight V1R6.0