Template

Class Template()

Template(parent='MODEL', name='Template_n', label='Template_n', 
active=True, type='SOLVER_INPUT')

Templex template.

Keyword Arguments

Argument Data Type Description Default
name String The variable name. Template_n, for next available integer n.
label String The descriptive label. Template_n, for next available integer n.
parent Object The parent. MODEL
active Boolean Used to activate or deactivate this entity. True
type Enum The type. One of USER, SOLVER_INPUT, SOLVER_COMMAND, SOLVER_PARAM, GRAPHICS, ADAMS, ACF or PROCEDURE. SOLVER_INPUT
text String Evaluated text from the template. ''

Examples

Create a template.
   >>> from hw import mview
   >>> t = mview.Template()
   >>> t.type = "USER"
   >>> t.text = "ARRAY/ 50000010, NUMBERS = , {ds.veh_end.ival, %d } ! 0 = Front susp."