User`s manual

Multiple logfiles and datasets
ModelSim Xilinx Users Manual Multiple logfiles, datasets and virtuals 6-99
Additionally, a Structure or Signals window may be created sensitive to a
specified dataset using the -env <dataset> switch to the view command. For
example,
view -new signals -env view1
will create a new Signals window sensitive to the view1 dataset.
ModelSim remembers a "current context" within each open dataset. You can
toggle between the current context of each dataset using the environment
command specifying the dataset without a path. For example:
env foo:
will set the current dataset to foo and the current context to the context last
specified for foo.
The current context of the current dataset (usually referred to as just "current
context") is used for finding objects specified without a path.
Restricting the dataset prefix display
The default for dataset prefix viewing is set with a variable in pref.tcl,
PrefMain(DisplayDatasetPrefix). Setting the variable to 1 will display the
prefix, setting it to 0 will not. It is set to 1 by default. You can use the Tcl set
command to change the variable value from the ModelSim command line:
set PrefMain(DisplayDatasetPrefix) 0
Additionally, you can restrict display of the dataset prefix if you use the
environment -nodataset command to view a dataset. To display the prefix use
the environment command
(CR-50) with the -dataset option (you wont need to
specify this option if the variable noted above is set to 1). The environment
command line switches override the pref.tcl variable.