MicroStationCONNECT Edition 帮助

ConfigurationSetup.cfg 配置文件

如果在安装期间定义了自定义配置路径,则会将其写入到 ConfigurationSetup.cfg 文件中。这样会在 _USTN_CUSTOM_CONFIGURATION 配置变量中定义根配置目录。msconfig.cfg 包含 ConfigurationSetup.cfg,具体如下:
%if exists ($(_USTN_INSTALLED_CONFIGURATION)ConfigurationSetup.cfg)
%  include $(_USTN_INSTALLED_CONFIGURATION)ConfigurationSetup.cfg
%endif
以下为所提供的 ConfigurationSetup.cfg 的内容:
#----------------------------------------------------------------------
#  ConfigurationSetup.cfg - Configures the root Configuration directory
#  for Your Organization
#
# The main function of this configuration file is to allow user to specify
# the root Configuration directory to activate. The active Configuration
# directory is represented by _USTN_CONFIGURATION. By default, it points to
# the installed Configuration defined by _USTN_INSTALLED_CONFIGURATION,
# which can consist of example WorkSpaces and WorkSets.
# If your organization has its own Configuration directory, you can define
# _USTN_CUSTOM_CONFIGURATION to that directory path and use it as follows.
#
#_USTN_CUSTOM_CONFIGURATION = D:/.../MyConfiguration/
#_USTN_CONFIGURATION : ${_USTN_CUSTOM_CONFIGURATION}
#----------------------------------------------------------------------

#----------------------------------------------------------------------
# START: The section defines user selection at the time of installation.
# These lines are generated by installer.
[General]
_USTN_CUSTOM_CONFIGURATION=

[SetConfiguration]
%if !defined (_USTN_USER_CONFIGURATION)
%if defined (_USTN_CUSTOM_CONFIGURATION) && ($(_USTN_CUSTOM_CONFIGURATION) != "") && exists ($(_USTN_CUSTOM_CONFIGURATION))
_USTN_CONFIGURATION = $(_USTN_CUSTOM_CONFIGURATION)
%endif
%endif

注释: 不应手动修改 ConfigurationSetup.cfg 文件。该文件会在切换配置时自动更新,还会在产品更新时替换。

如果没有在安装期间定义自定义配置位置,则 _USTN_CONFIGURATION 将指向由 _USTN_INSTALLED_CONFIGURATION 定义的随附的配置文件夹。如果在安装期间定义了自定义配置位置,则其路径在 _USTN_CUSTOM_CONFIGURATION 中设置。