custom_dirs.dat是什么文件?有什么用?

UG NX软件目录下有个:custom_dirs.dat文件,不知道这个文件有什么用。

路径:C:\Program Files\Siemens\NX\UGII\menus\custom_dirs.dat

#  custom_dirs.dat: Directories to search for Unigraphics customizations
#
#  Copyright (c) 1999 Unigraphics Solutions, Incorporated
#                  Unpublished - All rights reserved
#
###############################################################################

#
#  This file is used to specify directories which will be searched for
#  menu files, toolbar files, dialog files or UDO libraries.  The directories
#  added here may or may not exist, to allow the same file to be used at 
#  multiple sites.  When Unigraphics starts up, it will check each entry, if
#  the directory does not exist, the line will be discarded as if it was a 
#  comment.  Comments are allowed, and must start with a # in column one.  
#
#  Directories must be listed one per line, with nothing else on the line.  The 
#  directory may include environment variables, by specifying $variable.  If 
#  a $ is needed in a directory, it may be specified using $$, e.g. 
#  /users/my$$ would be the directory /users/my$.  The file may be made to 
#  work on UNX or WNT, on WNT any / characters will be replaced by \.  
#
#  A #include construct is supported to include other files, to make it easier 
#  for individual users to customize their runtime environment.  Finally the 
#  location of this file is controlled by the environment variable 
#  $UGII_CUSTOM_DIRECTORY_FILE which by default points to 
#  $UGII_DEFAULT_MENU_DIR/custom_dirs.dat.  Customers with a number of 
#  customizations, or a number of third party products have two ways to set
#  this up:
#    1.  This is the preferred method.  Create a file on a network drive 
#    that has lists all of the directories of the customizations.  Then the 
#    environment variable UGII_CUSTOM_DIRECTORY_FILE can point to this shared 
#    file, so that all users will load the third party software.  When a new
#    software tool needs to be added in, the global shared file can be updated
#    to give all users access to the new software.
#
#    2.  Edit this file and add the directory to it.  The problem with doing
#    this is that different users will have local copies of the NX software,
#    and so different files that need to be kept up-to-date.
#
#  Customers should feel free to edit this file.
#
####################################################################
#
# Customer modifications can follow on here
#


请先 登录 后评论

2 个回答

Mago

我UG12和  7.5共用,但是浩强工具用环境变量安装的,批处理功能就是只能一个版本好使。

请先 登录 后评论
老叶 - NX网、学技网、UG爱好者论坛创始人
擅长:NX软件

NX软件自定义菜单文件。

通常安装一些NX外挂需要修改它,在文件尾部加上外挂的所在存放路径,路径前记得不要跟随前面一样添加"#"号,"#"号是为了屏蔽,就像前面的文字说明都是用"#"号屏蔽的,不让系统误读取。

提示:通过这个文件尾部添加UG外挂路径的安装方式,可以使用每个UG软件版本独立使用外挂。与通过环境变量添加UG外挂的区别是修改custom_dirs.dat文件只安装本UG安装路径下的版本,而通过环境变量添加安装的UG外挂则是全局,也就是说使用环境变量的方式添加,你电脑上所有的UG软件版本都可使用,这样的好处是多个UG版本只要安装一次UG外挂,不好的地方是很多UG外挂并不兼容所有UG软件版本,环境变量的方式全局安装后会造成某些不兼容的UG软件无法正常运行,或者运行报错,或者在当前UG版本下的UG外挂工作不正常。

请先 登录 后评论