There are a number of special commands in Micromine Origin that aren't made explicitly obvious when using the macro function. These commands can give you ways of creating and managing complex macros. This article lists the special commands, providing a short description and an example of how to execute them in the macro tool.
ABORT terminates the macro when an error occurs. When using the ABORT command, the PAR field should contain either YES or NO to indicate whether the macro should abort or not when errors occur.
Figure 1: Example of using the ABORT command in a macro and the associated error message should a process fail.
BEEP sounds the computer speaker. In the PAR field, enter the number of times <n> that you want to sound the computer’s audio tone.
Figure 2: Example of using the BEEP command in a macro.
COMMENT includes a comment line in the macro. This does not affect any of the processes, it is just there to add useful information about the macro.
Figure 3: Example of using the COMMENT command in a macro.
! behaves like a comment. You can also use it to ‘hide’ an instruction.
Figure 4: Example of using the ! command in a macro.
{...} is the same as a comment but ‘hides’ all records, including those on which the brackets are located. Used to “comment out” several instructions.
Figure 5: Example of using the {...} command in a macro.
Want to learn more?
Online Help Manuals - Click here for the latest version
Learning Management System - Click here to login or here to request access
Comments
0 comments
Please sign in to leave a comment.