Question
Anyone worked with the Units API?
I am working with IBAs with unit and am trying to figure out the Units
API. I have an IBA with length units. It looks like the value is stored
in meters (m) in the system. I would like to output in another unit like
inch or centimeters. I have this:
UnitValueDefaultView unitIBA=(UnitValueDefaultView)attValue;
I assume I need to create a new Unit instance and feed it "cm" or "in".
It should know how to convert the values. What are the method calls to
convert?
API. I have an IBA with length units. It looks like the value is stored
in meters (m) in the system. I would like to output in another unit like
inch or centimeters. I have this:
UnitValueDefaultView unitIBA=(UnitValueDefaultView)attValue;
I assume I need to create a new Unit instance and feed it "cm" or "in".
It should know how to convert the values. What are the method calls to
convert?

