8.4. NX Configuration

Running the Product & CAD Configuration Manager for NX performs the following steps to activate the NX plug-in:

  • If not already existing, sets the environment variable UGII_CUSTOM_DIRECTORY_FILE to %APPDATA%\ANSYS\v242\Unigraphics\custom_dirs.dat.

  • If not already present, adds an entry to the custom_dirs.dat file specifying the location of the Plug-In, for example, C:\Program Files\ANSYS Inc\V242\AISOL\CADIntegration\UnigraphicsNX\winx64.

  • Registers the Plug-In file (DSPlugInUGCOM.dll). For the previous example, these files would be located in C:\Program Files\ANSYS Inc\V242\AISOL\CADIntegration\UnigraphicsNX\winx64\startup.

8.4.1. Configuring the Connection for NX

User-Defined Environment Variables  —  You will need to have the following environment variable set if you will be running the connection for NX product from inside NX.

UGII_BASE_DIR

The environment variable UGII_BASE_DIR must be defined for proper operation of NX and the Ansys Workbench Plug-In for NX. This environment variable is typically created by the NX installer; however, in rare cases, you may have to create/update it. In these situations, the NX Installation Location field will be left blank within the Product & CAD Configuration Manager's NX tab.

When multiple NX versions are installed on a system, the UGII_BASE_DIR environment variable must be set to the install path of the NX version to be launched, prior to starting that version of the CAD.  Otherwise errors will be encountered during CAD startup and the plug-in will not load. For example, if switching from NX 11.0 to run NX 12.0, you must update UGII_BASE_DIR to the NX 12.0 path before starting NX 12.0.