Lock mode

The LOCKMODE argument is used in combination with the MACRO command line argument. When the LOCKMODE argument is added to the command line parameter, the specified macro is executed in multi-user lock mode. If you execute the macro in lock mode, other users cannot make changes to the model during the macro execution.

Argument: LOCKMODE [=NOLOCK | TAKE]

To run a macro in lock mode, specify the argument on the command line or specify LOCKMODE = TAKE. The TAKE option allows you to override the model lock, if the model is locked by other users.

You cannot run the macro in lock mode without selecting the TAKE option, if the model is locked by other users. To run a macro without lock, do not specify the argument on the command line, or specify LOCKMODE=NOLOCK. The macro is executed normally.

Note: 
  • To use the LOCKMODE argument, the user must have permission to run the macro.
  • The LOCKMODE argument only impacts the behavior of the macro specified on the command line. The argument has no impact on the startup or exit macros defined in the model.