Scripting

The application comes bundled with a minimal version of Python which enables the user to run basic Micromine Origin & Beyond Python scripts and use the Python framework. Advanced users may want to install extra Python modules to increase the power and the flexibility of scripting. This will require a complete install of the official Micromine Origin & Beyond Python distribution. The application will scan the computer at start-up and will use the installed Micromine Origin & Beyond Python distribution if it is available and is compatible with the application.

Note that the application does not guarantee compatibility with all external Python modules as they may not be suitable to be used within the Micromine Origin & Beyond embedded python framework.

The following code will print all the search paths that Python will use to locate the modules it needs (if you are using the Micromine Origin & Beyond Python environment, the path will be <INSTALL_FOLDER>/python/lib):

print(sys.path)

The following page explains how to install the complete Python distribution and suggests some extra Python modules:

https://extras.micromine.com.au/ProductMicromineService/PythonScriptingMM2025.asp

For an example of Scripting Micromine Origin & Beyond Form Sets, see: Script Example.