Bentley Communities
Site
Search
User
Site
Search
User
Product Communities
MicroStation
[Archived] AskInga Wiki
Monitor your UPF file
Sign In
-
AskInga
+
3D MicroStation
+
AccuDraw Secrets
+
Animation - Rendering
+
Behind The Scenes
+
Cells
+
Colours
+
Conversion - Translation
+
Coordinate Input
+
Design Settings
+
Dimensions
+
DWG
+
EDG
+
Element Manipulation
+
Element Properties
+
Element Selection
+
Freeware - Shareware
+
Interface Look And Feel
+
Internet - E-Links - Links
+
Keyins
+
Levels
+
Line Styles
+
Models
+
MSM Archive
+
Other
+
Presentations
+
Printing - Plotting
+
Programming - Automation
+
Rasters - Images
+
References
+
Tags - Data Fields - Fields
+
Text - Fonts - Annotation
+
Views
+
Windows - Interacting With
-
Workspaces - Configuration
All about saving DWG files
Auto-open a file to a specific model
Change the MicroStation Manager workspace options
Complete list of MicroStation V8's configuration variables
Compress your UPF file
Configuration variable operators
Configuration variable processing
Configure your compress options
Control the output location of MicroStation Packages
Convert MDF files to DGNLIB
Create new UPF every time you start MicroStation
Creating a configuration file
Current working directory
Customized Standards Checker Reports
Degeek MS DESIGN HISTORY REVISION NUMBER FORMAT
Deleting your UPF while retaining most settings
Digging into your workspace
Disable stuff MicroStation can or can't do
Do you really need to restart MicroStation when editing variables?
Edit Project variables via workspace configuration
Get rid of MicroStation Text Window
Have only one UPF regardless of the workspace you are using
How to figure out what the command line switches are
How to set WORKDIR DGNDIR after starting MicroStation
Learning about workspaces
List the configuration variables
Lock down your variables
Managing MicroStation backup directories
MicroStation J and V8 workspaces on the same computer
MicroStation J enhanced workspace functionality
MicroStation J Workspaces
Monitor your UPF file
Move your custom interface from one machine to another
MS_RFDIR limitations
Open V7 files without reconfiguring V8
Open Windows Explorer to location of workspace files
Preprocessor directives for processing configuration files
Quickly restore the defaults with a command line switch
Referencing other configuration variables
Regarding the last line in a configuration file
Report your variables with Expand Echo keyin
Return to the MicroStation Manager
Run Debug from a modified icon
Run debug from the command prompt DOS window
Set temporary variables with the Expand Set keyin
Set up a seed file for your UPF file
Setting the MS_OPENV7 variable
Sharing your workspace
Shawn Foster's BE 2005 presentations
Show all configuration variables not just some
Show full path of active file in title bar
Specify sub-folders when making a new project
Specify the folder for msdebug.txt
Temporary files
The types of configuration variables
The User Preference File [UPF]
Total length of file paths
Transcending the workspace and time continuum
Understanding configuration variables
Understanding MicroStation BASIC configuration variables
Use a library legend to help manage your library definitions
User interface hierarchy
Viewing and determining the configuration variables
What happens when you launch MicroStation?
What is a workspace?
Working with V7 files in V8
Workspace root
You're the CAD Manager, now what?
graffiti
Questions about this article, topic, or product? Click here.
Monitor your UPF file
Original Tip Date:
Nov. 25, 2003
Monitor your UPF file
While watching a rerun of "The Flinstones",
Barry Bentley
overheard Fred telling Barney that you can monitor your UPF file in V8.5 by setting
MS_MONITOR_USER_PREFS = 1
.
This variable causes several tests to be activated, including watching for MDL applications that improperly use the UPF file.
Updated 2004-10-01:
Bentley's Back Door Answer Man,
Sam Wilson
adds this:
"In V8.5.1 the
MS_MONITOR_USER_PREFS
configuration variable is set to 1 by default, but you can easily set it to 0 to turn the monitoring off.
So, what does "monitoring" mean? Well, if
MS_MONITOR_USER_PREFS
is set, MicroStation 8.5.1 tries to detect when an application opens the user preferece file and then forgets to close it.
Why is it a big deal if an application leaves the user preference file open? MicroStation tries to make writing to a resource file as fast as possible, while also making the file as small as possible. In order to do both, MicroStation defers some clean-up tasks until the file is closed. If the file is not closed, this clean-up is not done, leaving wasted space in the file. This leaves the resource file larger than it needs to be, although it does not actually corrupt it.
When
MS_MONITOR_USER_PREFS
is set, MicroStation 8.5.1 doesn't just detect when an application has left the user preference file open, but it also remedies the problem by closing the UPF automatically. This gives the system the chance it needs to prevent the accumulation of wasted space in the user preference file.
If, for some reason, the UPF file was not closed properly in a previous session, then MicroStation will do the clean-up after the fact, squeezing the wasted space out of it. MicroStation only does this if the
MS_COMPRESS_USER_PREFS
variable is set and if the file is larger than 500K. The file size threshold is based on the theory that a smaller file is not likely to contain wasted space, while a larger file is suspicious."
Related Tip:
Compress Your UPF File
AskInga Tip #363
tips
Askinga
Workspaces Configuration
Share
History
More
Cancel
Created by
JStierly
When:
Thu, Jun 19 2008 3:28 PM
Last revision by
Inga Morozoff
When:
Tue, Jun 8 2010 4:53 PM
Revisions:
2
Comments:
0
Recommended
Related