*SetCurrentUserMode()

Sets the user mode when the MDL model is loaded with the option to lock the user mode.

Syntax

*SetCurrentUserMode(varname, [LOCK])

Arguments

varname
Must be the varname of the usermode defined in the preferences.mvw file.
Data type: varname
LOCK
An optional argument that informs the MotionView interface to lock the user mode when the MDL model is loaded.
Data type: keyword

Example

*BeginMDL( model, "Model" )
 . . .
 *SetCurrentUserMode( mode1, LOCK )
 . . .
*EndMDL()

Context

*BeginMdl()

Comments

One or more user modes must be defined in the preferences.mvw file to be referenced by the *SetCurrentUserMode() statement. The LOCK option can be coupled with the interface's encryption option to secure an MDL model and the desired panels.