(SketchUp C API)
I have implemented a SketchUp “SKP” file importer for our 3D modelling package, and have discovered that the imported scale is usually correct but is sometimes very wrong.
SUModelGetUnits() returns SUModelUnits_Meters for every model I have tested, and the vast majority of models are imported correctly if I accept this value and use a global scale factor of 1 skp unit == 1 metre.
However, our users have discovered that a small number of SketchUp models are in fact 1 unit == 1 inch.
I have not been able to determine any distinguishing features of these ‘inch’ models.
In all these models, SUModelGetUnits() returns SUModelUnits_Meters, and the “UnitsOptions” SUOptionsProvider returns 0 (Decimal) for LengthFormat and 4 (Metres) for LengthUnit.
It doesn’t matter whether the model is really metres or really inches, I get the exact same results from these calls.
How do I read the actual size of unit that is being used?