MicroStation 讀我

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 中設定。