Keyin to set (nested) level transparency


  
 Applies To 
  
 Product(s):MicroStation
 Version(s):08.11.07.443
 Environment: N\A
 Area: Levels
 Subarea: General
 Original Author:Bentley Technical Support Group
  

Problem

How to set the transparency of specific levels in a master file as well
as in a (nested) reference file to a specific value, using a key-in.

Solution

Preparation:
Editing of (nested) reference levels in the master file must be allowed:
Key in:
set refleveloverrides on
As that is a file specific setting, make it permanent by using:
File>Save Settings

Variables:
MS_LEVEL_EDIT_NESTED_ATTACHMENT_LEVELS = 1
MS_LEVEL_LOAD_ATTACHMENT_FILTERS = 1

The general format for the keyin is:
level set transparency new-level-transparency [file:file-spec]
level-spec

Having the above conditions set/met, in the example below it is assumed
that the levels to be affected in the (nested) references end with the
name: _ins (like: insulation, often used in AutoPlant files). To those
levels a transparency value: 50 needs to be applied.
The following keyins can be entered.
Master file:
level set transparency 50 *_ins

All direct attachments:
level set transparency 50 file:*.* *_ins

Attachments at first nest depth level:
level set transparency 50 file:*.*->*.* *_ins

Attachments at second nest depth level:
level set transparency 50 file:*.*->*.*->*.* *_ins

Notes:
This is a global setting in Level Manager, all the views are affected.
To make the levels non-transparent, run the same key-ins with value: 0
In a similar way the level priority etc. can be set
The *.* in the file name of course can be replaced by the intended
filename.extension.
In case the file name and/or level name contains spaces, enclosed those
names in double quotes.