How to get Custom UnitSystem in RhinoCommon

Hello,

We are developing a C# plugin using the RhinoCommon API for Rhino5 & Rhino6 and I am looking for a way to get the scaling value of the “Custom” UnitSystem. The documentation mentions that this value is available in the ON_UnitSystem class (or ON_3dmUnitsAndTolerances depending on the API version), which doesn’t seem to exist inside RhinoCommon and looks like to be an OpenNurbs class. ( https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_UnitSystem.htm or https://developer.rhino3d.com/5/api/RhinoCommon/html/T_Rhino_UnitSystem.htm )

Where would this information be available inside RhinoCommon? Or is it available in OpenNurbs only?

Thank you.

I think you are looking for https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_RhinoMath_UnitScale.htm

That will do, thanks a lot!