Creating a Personal CAVI Config File
HEC applications offer a wide range of configurable settings that can be adjusted through configuration files or -D flags. These -D flags allow you to customize how individual plugins function, control the behavior of the main application, and set preferences for visualization.
Rather than modifying the default HEC-RTS configuration file (CAVI.config), you have the option to create a personal configuration file named CAVI-Personal.config. The key advantage of using a personal config file is that it’s independent of specific software versions. While CAVI.config must be updated each time you install a new version, CAVI-Personal.config remains consistent and applies across all versions. When present, the personal config file will override the default config file, allowing you to customize the behavior of HEC-RTS to better suit your needs.
This guide will walk you through the process of creating and editing a CAVI-Personal.config file tailored to your preferences.
Software Version
HEC-RTS 3.5 was used to create this tutorial.
Step 1: Open the ConfigEditor
By default, HEC-RTS looks for a personal configuration file at the following location: C:\Users\<USERNAME>\AppData\Roaming\CWMS\PersonalConfigs\CAVI-Personal.config.
You can create and edit this file using the ConfigEditor included with the HEC-RTS installation.
To launch the ConfigEditor:
- Open File Explorer and navigate to your HEC-RTS installation directory.
- Go to the \<HEC-RTS version>\common\exe folder.
- Double-click ConfigEditor.exe to launch the editor.

Step 2: Open the Default CAVI.config File
- In ConfigEditor, go to the File menu and select Open.
Navigate to the \<HEC-RTS version>\CAVI folder.
Open the CAVI.config file.

ConfigEditor will automatically generate a new CAVI-Personal.config file (if one doesn't already exist) at C:\Users\<USERNAME>\AppData\Roaming\CWMS\PersonalConfigs.
You should now see two tabs in the editor:
- CAVI.config
- CAVI-Personal.config

Step 3: Edit the CAVI-Personal.config File
- Click the CAVI-Personal.config tab.
- From the Edit menu, select Basic Settings.
- Set both the Initial Memory and Max Memory to 8192MB.
- If 8192MB isn't in the dropdown, you can type it in manually.
- It's recommended to set both values the same to ensure consistent memory allocation.
- To always show the Console Window, check the corresponding box.

- Click Save to apply your changes.
These changes will add three entries to the file:
- Minimum memory
- Maximum memory
- Console window visibility

If you're not proceeding to the next step, you can now close the editor.
Step 4: (Optional) Add Additional -D Flags
You can further customize your configuration by adding -D flags:
- From the Edit menu, select Add Command.
- Choose the appropriate command type (e.g., vmparam).
- You will be given two options:
- Manual Entry: Type in the flag manually.
- Automatic Entry: Use the built-in dialog to select from commonly used flags.
- After adding the desired flag(s), save the configuration file you were editing.
- Close the ConfigEditor.
Refer to this guide for more information on available -D flag options and their use cases.