Setting the GATEWAY_DM_EXEDIR environment variable

The environment variable GATEWAY_DM_EXEDIR records the location of the MI Materials Gateway Platform folder. This location is used to store the files that run MI Materials Gateway.

Windows systems

For central deployment on Windows, the GATEWAY_DM_EXEDIR environment variable should be created on all client machines. In cases where this cannot be done, the environment variable can be created temporarily, for example by invoking the host application session via a script and setting the GATEWAY_DM_EXEDIR environment variable in the script.

For example:

GATEWAY_DM_EXEDIR=C:\ProgramData\Granta Design\MI Materials Gateway\Platform
Linux systems

When using default installation settings, MI Materials Gateway installs to /opt/Granta Design/MI Materials Gateway, and there is no need to create the GATEWAY_DM_EXEDIR variable.

If you install MI Materials Gateway to a different location, using the installation script parameter --installdir you must set GATEWAY_DM_EXEDIR either at the system level or in host launch script.

For example, the Ansys Workbench launcher file runwb2 with the GATEWAY_DM_EXEDIR variable added to it: