*SetBoolean()

Sets the value of a boolean entity.

Syntax

*SetBoolean(boolean_name,boolean_value)

Arguments

boolean_name
The variable name of an existing boolean entity.
Data type: varname
boolean_value
The value of the boolean entity.
Data type: boolean

Example

*DefineAnalysis(andef_event, sys, p_wc, 
 b_wheel, 
 j_w_spin, 
 j_rack)
 
 
 *SetInteger(ds_event.tbl_load_case.num[1], 1)
 *SetString(ds_event.tbl_load_case.title[1], 
 "Vert load")
 *SetOption(ds_event.tbl_load_case.loc[1], "WC -right")
 *SetOption(ds_event.tbl_load_case.dir[1], "Z" )
 *SetOption(ds_event.tbl_load_case.type[1], "LOAD" )
 *SetReal(ds_event.tbl_load_case.mult[1], 1)
 *SetInteger(ds_event.tbl_load_case.steps[1], 10)
 *SetReal( ds_event.tbl_load_case.expr[1], 4850.0)
 
*SetBoolean(ds_event.tbl_load_case.active_flag[1], TRUE)
*EndDefine()
*DefineTable(tbldef_load_case)
 *Integer(num, "Load case number")
 *Integer(steps, "Steps")
 *String(title, "Load case title")
 *Option(loc, "Load/Disp location", 4, 
 "Tire patch -left", "WC -left", 
 "Tire patch -right", "WC -right")
 *Option(dir, "Load/Disp direction", 6, "X", "Y", "Z", 
 "RX", "RY", "RZ")
 *Option(type, "Load type", 2, "LOAD", "DISP")
 *Real(mult, "Multiplier")
 *Real(expr, "Expression")
 *Boolean(active_flag, " State of loadcase")
*EndDefine()

Context

*BeginMdl()

*DefineAnalysis()

*DefineDataSet()

*DefineSystem()

Comments

Boolean entities can have a value of TRUE or FALSE.