lacks U.S. Customary Units

Aug 21, 2013 at 6:25 PM
Edited Aug 21, 2013 at 6:25 PM
I found this library expecting to be able to use it for unit conversions in my application. It appears to be a well-written, clean interface. Looks useful. But the very first thing I tried to do with it was convert Pascal to PSI. oops.... SI-only :(

edit: grammar
Aug 22, 2013 at 4:23 PM
Hi Christophocles

Thank you for your comment. Yes, you are right that the PhysicalMeasure library do no include any U.S. units. I have not needed them my self (yet).

But it is possible to add new unit systems to it by creating a new UnitSystem object and add it to the UnitSystems array, and add also a new UnitSystemConversion object to the UnitSystemConversions collection. Both UnitSystems and UnitSystemConversions are place in 'static partial class Physics' around line 5200 in PhysicalMeasure.cs.

If you do that. you should be able to use the added U.S units in your code. You are welcome to send me a copy of your code, which I then can include in the project, so that ever body can use U.S units.