I’m having trouble understanding how to correctly export a given RhinoDoc instance so that the unit system is always in meters. It does not have to be a file export, it could also just be another RhinoDoc instance, but it seems like it was simplest to do this as a file export.
If I do this:
var newDocPath = Path.Combine(tempFolder, $"{Guid.NewGuid()}.3dm");
doc.SaveAs(newDocPath);
using (var newDoc = RhinoDoc.OpenHeadless(newDocPath))
{
newDoc.AdjustModelUnitSystem(UnitSystem.Meters, scale: true);
newDoc.Save();
}
the output .3dm file is using the correct model units but when I compare lengths of objects with the Length command I can see that the scaling has not been performed. For instance a wall in the original model was 270 cm high but 270 m in the output file.
What am I doing wrong?