Command Line Options
Micromine Origin & Beyond can be started with command line options that can be used to:
-
Specify the interface language
-
Open a project
-
Run a macro or Python script
And for troubleshooting purposes;
-
Select the graphics renderer to use or,
-
Start in Safe Mode.
You can use the command lines in a desktop shortcut, a batch file, a Windows scheduled task, or the Win + R Run box.
Syntax
The syntax for entering a command line option is as follows:
mmwinldr.exe [/language <name>] [/project <name>] [/macro <file> [/macroreport <file>]] [/script <file>] [/ogl <renderer>] [/safemode]
The above displays the mmwindlr.exe application shortcut followed by each of the available command line options, as outlined in the Standard Options and Troubleshooting Options tables which follow.
-
An option that takes a value is followed by the value as the next argument.
Note: Put the value in double quotes if it contains spaces.
-
Options are not case sensitive.
-
A leading / or - is accepted (e.g. /safemode and -safemode are the same).
-
Options can be combined in any order.
As an example, the following shortcut target contains command line options for Language and Project:
When you have configured the required command line options, to run the application;
-
Start mmwinldr.exe from the installation folder.
By default, the installation folder is located at:
%LOCALAPPDATA%\Programs\Micromine\OriginBeyond\<version>
For example:
C:\Users\<user>\AppData\Local\Programs\Micromine\OriginBeyond\2026.5.
The application will display the splash screen, execute the command line options (such as selecting the language and project in this example) and start Micromine Origin & Beyond (mmwin.exe) with the same options.
Without any command line options configured, the application will perform the default start-up behaviour as follows:
-
Check for updates and verify the system requirements.
-
Open the last-used project if Auto load last project is selected for the Project options, or the master project if Enable master project is selected.
Otherwise, the Projects page will be displayed for you to choose one.
-
Auto-loads the Vizex view or session chosen in the Project options (File > Project Options > Vizex > General > Auto load).
Note: The /project command line option replaces the last-used project step above; and the /macro and /script command line options will run after the auto-load Vizex step.
Standard Options
The table which follows describes the available standard command line options for Micromine Origin & Beyond.
| Option | Value | Description |
|---|---|---|
| /project | Project name |
Opens the named project instead of the last-used project. Specify the project name as shown on the Projects page, not a file path. If the project cannot be opened, the application starts with no project loaded. |
| /macro | Macro file (.mcr) |
Runs the specified macro after the project has opened. A relative file name is resolved against the current project folder, so combine this with /project. If the macro ends with an EXIT command the application closes when the macro finishes, which makes this suitable for unattended processing. See Command Line. |
| /macroreport | Report file | Writes the macro run report to this file instead of the default. This option is only relevant when coupled with /macro. |
| /script | Python script (.py) | Runs the Python script after the project has opened and any macro has been executed. A relative file name is resolved against the current project folder. |
| /language | English; Russian; Chinese; Spanish; Portuguese; Turkish; French |
Starts Micromine Origin & Beyond in the specified interface language. This command line option overrides the MM_DEFAULT_LANGUAGE environment variable and the language saved from the previous session. |
Troubleshooting Options
The table which follows describes the troubleshooting available command line options for Micromine Origin & Beyond.
These options change how the application starts so that a start-up or graphics problem can be isolated. They are normally used only when advised by Micromine Australia Pty Ltd Support or by a knowledge-base article.
| Option | Value | Description |
|---|---|---|
| /safemode | None |
Starts Origin & Beyond in Safe Mode. |
| /ogl | default; mesa; mesa,<backend> |
Selects the OpenGL renderer used for Vizex. See Graphics renderer below. |
Safe Mode
The /safemode command line option starts Micromine Origin & Beyond without any automatic loading. This means a project whose data is crashing the application at start-up, for example, can be opened and repaired.
In Safe Mode, Origin & Beyond:
-
Does not open the last-used or master project.
Nothing is loaded until you choose File| Open Project.
-
Ignores /project, /macro, /macroreport and /script if they are also given.
-
Does not auto-load the last or saved Vizex view, and does not auto-load or overwrite the last or saved session.
-
Uses the Windows GDI renderer for Vizex.
You can switch back using View| Vizex | OpenGL once the application is running.
-
Skips the update check, crash auto-fix, system-requirements and incompatible-module checks, and the start page.
The title bar displays [Safe Mode] while safe mode is active. Safe Mode will only be applied to the specific start-up instance.
Tip: You can also enter Safe Mode without a command-line option by holding CTRL while the application starts and answering Yes to the prompt.
Graphics renderer
By default, Vizex uses the OpenGL driver for the graphics card on your machine. On machines without a capable driver, such as some virtual machines and Remote Desktop sessions, Origin & Beyond can instead use the Mesa software renderer that ships with the product. This switch can be executed with the /OGL command line option as follows:
| /OGL Value | Description |
|---|---|
| /ogl default |
Uses the driver for the graphics card. If the driver reports an OpenGL version older than 2, or only the Windows GDI Generic renderer, use will fall back to Mesa automatically. This is the behaviour when /ogl is not given and nothing is set in the INI file. |
| /ogl mesa |
Always uses the Mesa software renderer. |
| /ogl mesa, <backend> |
Uses Mesa with a specific Gallium backend: For example /mesa,llvmpipe. Note: This command line option is only required when advised by Micromine Support.
|
The /ogl command line selection can be made permanent in the .INI file (see Advanced program settings). However, the command line option overrides the INI setting.
Advanced program settings
A small number of start-up settings can be set in an INI file rather than in the Options dialogs of the application. These settings are intended for troubleshooting, and should only be changed when advised by Micromine Australia Pty Ltd Support, who will supply the exact section and key required to address any active issue.
Template
The installation folder contains mmwin.ini, beside mmwinldr.exe. This file is a template - every available setting is listed in it with a comment explaining its values, and the settings themselves are commented out.
Do not edit this template in place; it is replaced on upgrade. Instead, copy it, keep only the settings you need, and save the copy to one of the locations outlined in the table below. The table outlines where a copy is read from. Files are read in this order and a later file overrides an earlier one:
| File | Location | Scope |
|---|---|---|
| mmwin.ini | Installation folder |
Shipped template and defaults. |
| mmwin.ini | %LOCALAPPDATA%\Micromine\OriginBeyond |
Per-user, every installed version. |
|
mmwin-<major>.<minor>.ini(for example mmwin-2026.5.ini) |
%LOCALAPPDATA%\Micromine\OriginBeyond | Per-user, one version only. |
| mmwin.ini | Project folder | One project only. |
Note: Only the keys present in a copy are overridden. Settings take effect the next time the application starts.
Example
The following example displays the setting for selection of the graphics renderer using the INI file (the INI equivalent of the /ogl option):
[Graphics]
; Default | Mesa | Mesa,<backend> | MesaOnRemoteDesktop
OpenGL=Default
MesaOnRemoteDesktop uses the graphics card driver on the console and switches to Mesa only when the session is a Remote Desktop or terminal-services session. The /ogl command-line option overrides the INI setting.
Environment Variables
Environment variables are named system-level values that are read to determine configuration or behaviour. In Origin & Beyond, the MM_DEFAULT_LANGUAGE environment variable sets the default user-interface language:
| Variable | Effect |
|---|---|
| MM_DEFAULT_LANGUAGE |
Selects the interface language to use when /language is not provided. The environment variable accepts the same values as /language. |
Environment variables differ from project substitution variables, which are defined within a project and referenced with an @ prefix in forms, macros, and expressions.
Automating a macro or script with Windows Task Scheduler
The available command line options can be used to allow Windows® Task Scheduler to start the Origin & Beyond unattended; open a project, run a macro or Python script, and then close the application again. A typical use for this feature is the overnight import of data or execution of a report.
The following steps can be performed to achieve this:
-
Write the macro so that it ends with an Exit command. This will close the application when the macro run is complete. Test interactively first.
See Macro Commands and Run Macro.
-
Open the Windows® Task Scheduler and choose Create Task.
The Task Scheduler Create Task dialog is opened.
On the General tab,
-
Select Run only when user is logged on.
The application needs an interactive desktop and a licence, so it cannot run as a background service account.
-
Select the Triggers tab and set the schedule.
-
Select the Actions tab.
-
Click the New button to open the New Action dialog.
-
Select Start a program and in the Program/script field, enter:
"the full path to mmwinldr.exe" (in quotes).
You can also use the Browse button to locate mmwinldr.exe. You may need to manually enter the quotes.
In the Add arguments field,
-
Add arguments in the format: /project <name> /macro <file> /macroreport <file>.
For example, for running a Training macro and report; add:
/project Training /macro "C:\Automation\Nightly.mcr" /macroreport "C:\Automation\Nightly.txt"
-
Leave the Start in field blank or set the folder holding the macro if it uses relative paths.
-
Click the Settings tab.
-
Select Stop the task if it runs longer than and;
-
Select a limit from the drop down. Setting an end limit ensures that a macro which stops on an error does not hold the licence indefinitely.
Tip: Check the macro report file after the first scheduled run. If a run stops early, it usually indicates that a dialog was waiting for input. You can revise the macro so that every process runs without prompting.
Examples
The following information outlines examples of using command line options to interact with Micromine Origin & Beyond.
Open the Training project and run a nightly macro, then close
"%LOCALAPPDATA%\Programs\Micromine\OriginBeyond\2026.5\mmwinldr.exe" /project Training /macro Nightly.mcr /macroreport C:\Reports\Nightly.txt
Open the Training project and run a Python script stored in the project folder
"%LOCALAPPDATA%\Programs\Micromine\OriginBeyond\2026.5\mmwinldr.exe" /project Training /script UpdateBlockModel.py
Start the application in Spanish
mmwinldr.exe /language spanish
Troubleshoot a project that crashes on start-up
mmwinldr.exe /safemode