Export 3dm with another unit system

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?

Hi @ia1,

Thanks for reporting. I’ve logged the issue.

https://mcneel.myjetbrains.com/youtrack/issue/RH-67485

– Dale

Hi @dale,

Thanks for your prompt response.
Can you share which versions of Rhino 7 are effected by this issue?
Seems like you have fixed the issue. When can I expect this fix to be published?

Hi Ingimar -

From that tracking report, the fix went into 7.x, which currently is 7.17. The first public release candidate of 7.17 will be when the final 7.16 gets released and that is currently planned to happen on March 8th.
-wim

2 Likes

RH-67485 is fixed in Rhino 7 Service Release 17 Release Candidate