How to have MicroStation automatically shutdown (Idle Time Out)


 Product(s):MicroStation
 Version(s):V8 2004, V8 XM, V8i, CONNECT
 Environment:N\A
 Area:Configuration
 Subarea:General

Problem

Request for MicroStation, or applications built on the MicroStation platform, to be able to shutdown automatically after passage of a predetermined amount of time.

Solution

MicroStation V8 2004 Edition, V8 XM, V8i, CONNECT and platform based applications

A built-in configuration variable MS_IDLETIMEOUT has been included that allows you to define a set amount of idle time after which MicroStation will shut down. A minimum of 30 minutes can be used within this configuration variable and if set to 0 the software will never exit, even if idle.

CONNECT Edition Configuration dialog

When this variable is set, and a defined time period of non-use or idleness has been reached, a dialog box will appear advising application closure in the next XX seconds.
If you click on the OK button you can continue to work, otherwise MicroStation will then shut down when the timer expires.

Ideally this variable should be controlled at the Organization configuration level as it is generally an option that would be applied across a whole organization.

To set the time out to 30 minutes (the minimum) add the following line to the organization configuration (to standards.cfg or it's equivalent):

MS_IDLETIMEOUT = 30

The default location for standards.cfg is C:\ProgramData\Bentley\.....\Configuration\Organization\standards.cfg
You can open this file with a text editor and add the syntax.

For regular MicroStation, the location of this file will be:
C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\Organization\standards.cfg

If in a custom networked configuration, be sure to add this variable to the organization configuration file.

To enforce a time out period, the variable can be locked by adding a %lock statement. For example:

MS_IDLETIMEOUT = 30

%lock MS_IDLETIMEOUT

Sample Workflow to set MS_IDLETIMEOUT at Organizational Level (multiple machines)

1. Close out of MicroStation completely
2. In Windows File Explorer, navigate to:
C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\Organization
3. Open Standards.cfg file with a text editor such as Notepad
4. At the end of this file, add the folllowing syntax:

MS_IDLETIMEOUT = 30

%lock MS_IDLETIMEOUT



5. Save changes and close this file
6. Open MicroStation and the changes will take effect (assuming the Standards.cfg file is read by your configuration)

Sample Workflow to set MS_IDLETIMEOUT at User Level (single machine)

1. Open any design file in MicroStation
2. Navigate to File > Settings > Configuration > Configuration Variables > Operation Category > MS_IDLETIMEOUT
3. Select this variable, and then select "Edit"
4. With the Edit Mode set to Overwrite, input the desired number of minutes in the New Value field.
5. Press OK > OK again > Yes to save changes
6. Close & reopen MicroStation and the changes will take effect

Notes

- MS_IDLETIMEOUT only takes effect during an Active application session, i.e. if a DGN file is open

- If all design files are closed and the application is left at the file open dialog, MS_IDLETIMEOUT will not have any effect.

- Users should still be advised to close applications when they do not need to use them.

- This variable can be set at any configuration level (Organization, WorkSpace, WorkSet, User, etc.)

MicroStation V7 or /J

The Idle tool for these older versions "idle.ma" was previously used.

Other Language Sources

Español Français Deutsch Italiano

See Also

Road and Site Design - Idle Timeout

Product articles and FAQs

External Links

Bentley LEARN Server