The NX DCI uses environment variables set by the NX installation.
You must set the UGII_ROOT_DIR environment variable below.
If NX is installed on the same computer as PC-DMIS, then you may skip the other environment variables.
If NX is installed on a network (mapped drive), then you need to set the environmental variables below.
There are two ways to handle the installation of environment variables:
Method 1: Run PC-DMIS from an NX Command Prompt
The first method is to run PC-DMIS from an NX command prompt.
To start the command prompt, from the Start->NX menus, select the NX Tools->Command Prompt option.
You can now run PC-DMIS from the command line.
Method 2: Manually Set Environment Variables
The second method is to manually set the required environment variables to tell PC-DMIS where to find the NX license server and NX executable. Set the required environment variables as shown below:
UGS_LICENSE_BUNDLE=<bundle name>, where <bundle name> is the bundle name found in the NX license file. The UGS_LICENSE_BUNDLE variable tells the NX license server which license bundle you have. The bundle names can be found in the NX license file on the PACKAGE lines. For example, if your license file showed PACKAGE NXPTNR100 ugslmd, you would set UGS_LICENSE_BUNDLE=NXPTNR100.
UGS_LICENSE_SERVER=28000@<server name>, where <server name> is the name of the NX license server.
UGII_BASE_DIR=<install path>, where <install path> is the full pathway to the NX install directory. For NX 8, the default path is C:\Program Files\UGS\NX8.
UGII_ROOT_DIR=<exe path>, where <exe path> is the full pathway to the root folder of the NX executable. The PC-DMIS NX DCI uses this environment variable to find the NX executable. This variable is required whether NX is installed locally or on a mapped network drive.
Version | Default Path |
NX 8 | C:\Program Files\UGS\NX8\UGII\ |
NX 11 | C:\Program Files\Siemens\NX11.0\NXBIN\ (Starting with NX 11, Siemens changed their directory structure.) |
NX 12 | C:\Program Files\Siemens\NX12.0\NXBIN\ |
NX 1847 and above | C:\Program Files\Siemens\NX\NXBIN\ |
These environment variables are useful for debugging problems:
UGII_KEEP_SYSTEM_LOG=<tog1>, where <tog1> is either YES or NO. Each NX session creates a log file. If you set this variable to YES, the log file remains when you exit NX.
UGII_TMP_DIR=<temp path>, where <temp path> is the temporary directory that NX uses (usually, it is C:\Windows\TEMP\UGS). The log files are in this directory.
UGS_LICENSING_NOTE=<tog2>, where <tog2> is either 1 or 0. If you set this to 1, the software adds NX licensing messages to the log file.
UGII_FLEX_NOTE=<tog3>, where <tog3> is either ON or OFF. If you set this to ON, the software adds NX Flex licensing messages to the log file.