[ORD 10.11] [C#] IECPropertyValue get display value string

I have a question regarding calculating the value display string for an IECPropertyValue in ORD. I have a piece of code that retrieves the formatted value like this:

// IECPropertyValue propertyValue;
var formatter = ECPropertyPane.GetPropertyValueFormatter(propertyValue.Property);
return formatter != null ? formatter.ConvertToExpressionType(propertyValue).ToString() : propertyValue.NativeValue.ToString();

However, I've noticed that this approach doesn't include the unit and rounding a number when returning the value.
Is there a way to calculate the value with its unit using API?

Your assistance would be greatly appreciated.
Thanks

Parents Reply Children
No Data