*BeginTask()
Begins a block for a selectable analysis task inside a task group.
Syntax
*BeginTask(task_name, "task_label", an_def, "file_name", "help_text", arg_1, arg_2, …, arg_n)
Arguments
- task_name
- The variable name of the task.
- task_label
- The descriptive label of the analysis task.
- an_def
- An existing analysis definition in file_name.
- file_name
- The name of the .mdl file containing the analysis definition for an_def.
- help_text
- Additional selection information (not used).
- arg_1, arg_2, …, arg_n
- The arguments being passed to the analysis.
Example
*BeginPanel
• • •
*BeginTaskGroup(pwrtrain_task, "Powertrain task")
*BeginTask(powertrain1, an_pwrtrain_load,
"Static load analysis",
andef_event,
"Libs/Tasks/Pwrtrain/event.mdl",
"Static load analysis of powertrain",
sys_pwrtrain.b_pwrtrain,
B_Ground,
sys_pwrtrain.p_shaft1,
sys_pwrtrain.p_shaft2,
sys_pwrtrain.op_num_mnt,
sys_pwrtrain.bsh_mount1,
sys_pwrtrain.bsh_mount2,
sys_pwrtrain.bsh_mount3,
sys_pwrtrain.bsh_mount4)
*BeginForm(frm_pwrtrain_parameters)
*Title("Vehicle Parameters")
*Prompt("Enter the vehicle parameters")
*EndForm()
*BeginTabbedForm()
*Title("Solver Parameters")
*Prompt("Edit solver parameters")
*Tab("Equil", sys_solver.frm_equil)
*Tab("IC", sys_solver.frm_ic)
*Tab("Debug", sys_solver.frm_debug)
*Tab("Output", sys_solver.frm_out_opt)
*Tab("Result", sys_solver.frm_results)
*EndForm()
*EndTask()
*EndGroup()
*EndPanel()
Context
*BeginTaskGroup()