4 Replies Latest reply on Nov 30, 2015 4:27 PM by Michael Woratzeck

    How to convert mass from API GetMassProperties metric units to user units

    Michael Woratzeck

      Using C++, I get the mass properties using:


          SldWorks::IModelDocExtensionPtr swDocExt;


          long swStat;

          _variant_t mprops = swDocExt->GetMassProperties(0, &swStat);


      The mass properties are returned in metric units (as the documentation says).  I want to convert mass to what the user sees when the Mass Properties button is pushed.  There must be some "convert-to-user-units" API, but I have not found it.  I don't want to write a general converter.