Hydratec Inc.

Need to save a card for later?

Create a bookmark folder in your browser of choice (Chrome, Firefox...), and save individual cards in your bookmarks to view here later.

AutoCAD Based Calculations (Ribbon/Toolbar/Location)

Button: Start Autocalcs Error Type: Unhandled Exception

Description:

When performing AutoCalc, the following error is displayed.

Unhandled Exception... startIndex cannot be larger than the length of string.
(Parameter 'startIndex').


Solutions:

Cause:

HydraCALC is missing a directory "ImportExport", causing Flexible Sprinkler Connections to not have important friction loss data needed for calculations. 

Solution:

Add the missing directory "ImportExport" back to the HydraCALC directory.

  1. Navigate to the Hydratec installation directory `<installation-drive>\HES`.
    * <installation-drive> is the drive you have your Hydratec software installed on (usually "c:\")
  2. Continue to `HydraCALC\V50\Data\Setup\`
  3. Create a new folder/directory called "ImportExport"
    * - When complete you should have this directory location:
    `<installation-drive>\HES\HydraCALC\V50\Data\Setup\ImportExport`
  4. Recreate the Flexible Sprinkler definition
  5. Run "AutoCalc", you should no longer get the error.


If you need help completing this process, please feel free to contact support at Support@HydraCAD.com

Updated: June 3, 2025, 1:08 p.m. Created: June 2, 2025, 7:58 p.m.