When using the Flownex Excel API to modify the Number in Parallel property of a pipe, a type mismatch error may occur if the property is defined using a floating-point data type. What data type should be used for the Number in Parallel property, and how can it be accessed correctly through the API?
The Number in Parallel property is an integer-based setting and therefore should be handled using an integer data type, not a floating-point data type. Since the number of parallel pipes must be a whole number, using a data type intended for decimal values can result in type mismatch errors.
When accessing the property through the Flownex API, the property can be defined as an IPS_Core.Integer and linked to the {Discretisation} Number in Parallel property of the pipe component. Once linked, the integer value can be assigned directly or obtained from an external source such as an Excel cell. Using the correct integer data type ensures that the property can be modified successfully without data type conversion errors.