potrero
Mechanical
- Aug 30, 2007
- 516
This is mainly an FYI. In NX6 and prior releases, we used to modify the "ugii_env.dat" file inside [UGII_BASE_DIR]\UGII\ to set things such as the location of the directory for custom company part templates, etc. It looks like there has been a major change to the role/function of the "ugii_env.dat" file in NX7.5, as the file itself is almost entirely empty now, after a clean install. I searched the documentation for references as to the changes in the ugii_env.dat file between NX6 and NX7.5, but am not sure I found anything really explicit. The clues to the changes are in the ugii_env.dat and ugii_env_ug.dat files themselves.
Here is the content of the new (NX7.5) ugii_env.dat file:
#
# Copyright 1991 - 2009 Siemens Product Lifecycle Management Software Inc.
# All Rights Reserved.
#
###############################################################################
#
#
# This file should be used to override any standard NX environment variables.
# The values defined here will take precedence over the NX values, as long as
# they are defined before the #include of ugii_env_ug.dat. This file will not
# be overwritten by an MR installation.
#
# Override any variables here.
#
# Do not define any variables after the #include below. They must be defined
# before the #include in order to override the NX defaults.
#
#if FILE ${UGII_BASE_DIR}\ugii\ugii_env_ug.dat
#include ${UGII_BASE_DIR}\ugii\ugii_env_ug.dat
#endif
And here is the preamble of the NX7.5 "ugii_env_ug.dat" file:
# NOTE: Customer changes should be made to the ugii_env.dat file directly,
# which then includes this file. This file will be replaced when a
# MR is loaded, so customers should not edit this file. Environment
# variables in ugii_env.dat supercede any values here, so override the
# defaults by defining the value in the ugii_env.dat file, which will
# not be replaced during MR updates.
So, the bottom line is, make your customizations to environment variables in the ugii_env.dat file, just like the old version. What's changed is that this file won't get overwritten with Maintenance Releases. I suppose this is a nice change.
Here is the content of the new (NX7.5) ugii_env.dat file:
#
# Copyright 1991 - 2009 Siemens Product Lifecycle Management Software Inc.
# All Rights Reserved.
#
###############################################################################
#
#
# This file should be used to override any standard NX environment variables.
# The values defined here will take precedence over the NX values, as long as
# they are defined before the #include of ugii_env_ug.dat. This file will not
# be overwritten by an MR installation.
#
# Override any variables here.
#
# Do not define any variables after the #include below. They must be defined
# before the #include in order to override the NX defaults.
#
#if FILE ${UGII_BASE_DIR}\ugii\ugii_env_ug.dat
#include ${UGII_BASE_DIR}\ugii\ugii_env_ug.dat
#endif
And here is the preamble of the NX7.5 "ugii_env_ug.dat" file:
# NOTE: Customer changes should be made to the ugii_env.dat file directly,
# which then includes this file. This file will be replaced when a
# MR is loaded, so customers should not edit this file. Environment
# variables in ugii_env.dat supercede any values here, so override the
# defaults by defining the value in the ugii_env.dat file, which will
# not be replaced during MR updates.
So, the bottom line is, make your customizations to environment variables in the ugii_env.dat file, just like the old version. What's changed is that this file won't get overwritten with Maintenance Releases. I suppose this is a nice change.