V6 Beta - IGES export units default is "Microns"

@tim Noticed this when testing for something else -

image

All the different export schemes default to “Microns”. That’s wrong… It should be mm or inch, depending…

–Mitch

Hi Mitch,

I’ll have a look. All of the flavors use the same unit control, there’s not a unit per flavor. Microns is the first unit in the list so my guess is that’s the reason why it ends up as the default. It does look like it sticks if you change it though, at least on my computer. I’ll make sure the starting units are the current document units if there isn’t one already stored in settings.

Tim

Yes, that is OK here too.

Yes, that would be great, thanks Tim.

–Mitch

HI Mitch,

I have a question about this. It looks like, if you didn’t poke the details controls button, iges export always starts (the session) with the model units. It then pays attention to the units setting (both basic and detailed) once the detailed dialog is opened. Is that the behavior you’d want or would you like it to always use the unit setting, if it exists, and fallback to the model units if it doesn’t? Here’s two scenarios that describe what I mean.

Scenario A

  1. open model that has units inches.
  2. save as iges using basic (the starting dialog), file is saved with inches.
  3. saves as iges again using detailed dialog, changed units to mm, save and you should get the scale dialog.
  4. save again using basic dialog and you should still get the scale dialog.
  5. close rhino
  6. repeat steps 1 and 2. You should not get the scale dialog.

Scenario B

  1. open model that has units inches.
  2. save as iges using basic (the starting dialog), file is saved with inches.
  3. saves as iges again using detailed dialog, changed units to mm, save and you should get the scale dialog.
  4. save again using basic dialog and you should still get the scale dialog.
  5. close rhino
  6. repeat steps 1 and 2. You should get the scale dialog now and the file is not saved as inches.

To me scenario B seems right but it’s not currently how it’s setup, it currently does scenario A. What do you think is appropriate?

Tim

Well, that wasn’t my experience the first time I tried, I simply exported as iges (did not poke “detailed controls”), accepted the default and then got the “scale” dialog and realized it was in microns. Now I’ve reset it, let me try again…

Nope, that’s not what I’m seeing, I set iges export to inches and simple controls, then exited the Beta. Re-opened it, loaded a blank mm file, drew a box, hit iges export, accepted the default - then the scale box came up saying that the file was in mm and the export was set to inches, did I want to scale…

BTW, I think it would be good if even the “simple controls” box showed the proposed export units in this case…

–Mitch

Hi Mitch,

Here’s the issue to track this. https://mcneel.myjetbrains.com/youtrack/issue/RH-43388

I’ll add an issue for V7 to add units to the simple controls. It’s too late to do that now for V6. The changes I made for the issue above though should be better.

Tim