*DefineProcedure()

Begins a procedure definition block. *This statement has been deprecated and all functionality is now contained in the *DefineTemplate() - procedure statement.

Syntax

*DefineProcedure(proc_def_name,arg_1, arg_2,..., arg_n)

Arguments

proc_def_name
The variable name of the procedure definition.
Data type: varname
arg_1, arg_2, ..., arg_n
Arguments being passed into the procedure definition.
Data type: user-defined

Example

*DefineTemplate(def_tem_write_vehpar, ds)
 Vehicle model {ds.model.value}
 Vehicle wheelbase {ds.wheelbase.value}
 Sprung mass CG height {ds.spr_mass_cg_hgt.value}
 Front sprung mass {ds.frnt_spr_mass.value}
 Rear sprung mass {ds.rear_spr_mass.value}
*EndDefine()
*DefineProcedure(def_write, ds, tem_write_vehpar)
 
 *Write(ds.filename.value, CREATE, tem_write_vehpar)
*EndDefine()
*Template(tem_write_vehpar, "Write Vehicle Parameters", 
 USER, 
 def_tem_write_vehpar, 
 ds_vehpar)
*Procedure(write, "Write Parameters", 
 def_write, 
 ds_vehpar, 
 tem_write_vehpar)

Context

*BeginMdl()

Comments

The number and type of user-defined arguments depends on the procedure definition.

Multiple procedures can be created using the same procedure definition. The *DefineProcedure() block must end with an *EndDefine() statement.