Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA Pipeline Operations for Liquids

Convert volume to level increments

  • Last UpdatedApr 24, 2025
  • 1 minute read

To convert volume to level Increments

  • Invoke the StrappingTableService.ConvertVolumeToIncrements() method.

The following table details the necessary parameters:

Name

Type

Description

volume

double

The volume value to be converted to an increment.

The following table details the return value:

Type

Description

BLTResponse<double>

A response package that contains an indication if the operation was successful or not, the error message (if applicable), and the converted increment value.

Example:

using OASySDNA.LMS.Tank.Strapping;

using OASySDNA.LMS.Tank.Strapping.Common;

public void ConvertVolumeToLevelIncrements(string strappingTableName, double volume)

{

var strappingService = new StrappingTableService(strappingTableName);

var response = strappingService.ConvertVolumeToIncrements(volume);

if (response.State != ResponseState.OK)

{

Console.WriteLine($"An error occurred when converting volume to level for table {strappingTableName}: ({response.State}) {response.FailureReason}");

}

else

{

Console.WriteLine($"The strapping table {strappingTableName} defines volume {volume} as {response.Value} increments");

}

}