Program Files\UGS\NX 7.0\UGII 里有个文件,是专门讲UG环境变量的一些问题的,文件名ugii_env_ug.dat。
里面讲到自动调用DLL用好三种途径,具体说明如下
# *** NOTE: The UGII_SITE_DIR, UGII_VENDOR_DIR and UGII_USER_DIR variables
# can still be used, but a better way to point to customizations is to
# use the UGII_CUSTOM_DIRECTORY_FILE environment variable to point to a global
# file, and to list the directories in that file. See the documentation
# on UGII_CUSTOM_DIRECTORY_FILE above.
#
#UGII_VENDOR_DIR=${UGALLIANCE_DIR}\vendor
#UGII_SITE_DIR=${UGALLIANCE_DIR}\site
#UGII_USER_DIR=${HOME}
对于这一部分的讲解,UG帮助文件里也讲的比较的清楚,具体位置是,UG帮助文件_NX Open Programmer's Guide _How NX Finds Applications Files。大家看下这部分应该也会清楚许多。