How to reset ProStructures Dialog Boxes to default position?


 Product(s):ProStructures
 Version(s):CONNECT Edition (10.XX.00.XX)
 Area:General
 Subarea:N/A
 Original Author:Vyanktesh Nama, Bentley Product Advantage Group

Problem Description

When opening any tool in the ProStructures application the dialog boxes do not appear at all or appear way bigger than usual.

Reason

If you are using multiple screens and closed any ProStructures dialogs on another screen instead of the main screen then those dialogs position gets fixed at that screen location which stores in *_WndCfg.sve file and when you use only a single main screen then those dialogs do not appear. These *_WndCfg.sve file are located at where the PS_WNDCFG config variable is defined.

The solution to this problem is to delete all *_WndCfg.sve files that will reset all dialogs to their default position. It´s mostly needed to delete these files when you switch monitors or resolution.

Steps to resolve

There are three ways to fix this issue, please follow the one which suits you.

Method-I: Manually Deleting *_WndCfg.sve files

1. If ProStructures is running then, please close the application.

2. Go to the below path which is defined by the config variable PS_WNDCFG and delete all *_WndCfg.sve files.

Path: DriveName:\Users\<User Name>\AppData\Local\Bentley\ProStructures\10.0.0\prefs\Personal_WndCfg

3. Launch the ProStructures and check your tool dialog which should appear now at default location.

Method-II: Using ProSteel Tools

One can use ProSteel Tools as an add-in in the ProStructures where you find one tool that resets all dialogs to their default position.

For more information about this, kindly follow the below wiki link-

Wiki: 'PST Dialogs Standard Position' tool

In this way, by both the methods one can get all the ProStructures dialog boxes to their default location.

Method-III: By creating Batch Script file

1. Create a text file, give a required name and change the extension to *.bat (e.g., Reset PS Dialog Boxes.bat).

2. If you have not customized the config variable PS_WNDCFG then copy the below command lines and paste it in the text file (or you can directly download the batch script file from Here).

The command lines with default path will be as follows-

del /Q "C:\Users\%username%\AppData\Local\Bentley\ProStructures\10.0.0\prefs\Personal_WndCfg\*.sve"

rmdir /Q "C:\Users\%username%\AppData\Local\Bentley\ProStructures\10.0.0\prefs\Personal_WndCfg\"

exit /s

Note: If you have defined the custom path for the config variable PS_WNDCFG then copy that path and paste it in the below command lines.

del /Q "<Paste the copied path>\*.sve"

rmdir /Q "<Paste the copied path>\"

exit /s

3. Now, save the file and close it.

4. Now, double click on the file (e.g., Reset PS Dialog Boxes.bat) to run the batch script to delete all *_WndCfg.sve files which will reset the ProStructures dialog boxes.

Method-IV: Creating Reset button within the ProStructures

Example i: Deleting *_WndCfg.sve files from the default location (...\ProStructures\10.0.0\prefs\Personal_WndCfg\ folder)

1. Download the below script file which has the command lines explained in Method-III.

Download the Script File: Batch Script file to reset ProStructures dialog boxes - Example i.

2. Place it in the required location. e.g. C:\ProgramData\Bentley\ProStructures CONNECT Edition\Configuration\Organization\Macros

3. Open the Customize Ribbon dialog, create a new button and fill the required options and under the Key-in field set the key-in as follows-

bang "C:\ProgramData\Bentley\ProStructures CONNECT Edition\Configuration\Organization\Macros\Reset PS Dialog Boxes.bat"

4. Now, you are all set to use the Reset PS Dialog Boxes button to reset ProStructures dialog boxes to its default position.

Example ii: Deleting *_WndCfg.sve files from the multiple versions of the User Preference folders (e.g. 10.0.0.x) as shown in the below image

1. Download the below script file which has the command lines as follows.

del /Q /S "C:\Users\%username%\AppData\Local\Bentley\ProStructures\*WndCfg.sve"

rmdir /Q "C:\Users\%username%\AppData\Local\Bentley\ProStructures\"

exit /s

Download the Script File: Batch Script file to reset ProStructures dialog boxes - Example ii.

2. Now, follow the Steps 2 to 4 from the Method-IV > Example i of this wiki.

Note: If you have defined the custom path for the config variable PS_WNDCFG then you need to update the same path in the batch script file to make it work correctly.

See Also