MMpy.Macro.run
Syntax
MMpy.Macro.run(macro_file_path, report_file_path, append_report=False)
Description
Run a macro file.
Parameters
Name |
Type |
Description |
---|---|---|
macro_file_path |
str | Macro file path. |
report_file_path |
str | Report file path. |
append_report | bool | If true, report will be appended to report_file_path. |
Returns
Type |
Description |
---|---|
bool | Returns True if the macro file was successfully ran. |
Notes
The result of the macro can be controlled early by using the ABORT process with an optional YES in the PAR column. Otherwise, the result of the last macro process is returned.
This is a static class method.
Examples
result = MMpy.Macro.run('macro_file.MCR')
Resource ID
IDPH_MACRO_RUN