ugii_env.dat : NX6 vs NX7.5
ugii_env.dat : NX6 vs NX7.5
(OP)
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.





RE: ugii_env.dat : NX6 vs NX7.5
Also using .bat files allows me place shortcuts on the desktop which is really handy when you have as many versions of UG/NX installed as I do (11 at the moment, but I only place the last 4 on the actual desktop with the rest inside a folder, which has its own shortcut on the desktop).
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: ugii_env.dat : NX6 vs NX7.5
That sounds like a great idea.
I would be interested in seeing the .bat file that you are using to start NX. Are you willing to share?
Herb C.
Eifel Mold & Engineering Inc.
Plastics Tooling Designer
UG NX-6.0
RE: ugii_env.dat : NX6 vs NX7.5
Anyway, let me know how it works out. Have fun
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.