Feature request: change export units and auto scale on export

 From:  Michael Gibson
2241.10 In reply to 2241.6 
Hi AW,

> Not to add more work for MG, but it would be really nice if
> there were a scale factor setting for export...

There is one currently available for OBJ format export - you can set that under Options > Import/Export > OBJ options > Scale Factor.

Setting that will apply that scale factor to all the data exported to OBJ format files.

Does that do what you need for this?


> our engineering data is always in inches, and I'm constantly
> converting (scaling) imported assemblies by 25.4 (love to be
> able to skip this step for a multitude of reasons).

Do you mean you are manually scaling by 25.4 ? Normally it is intended that you should be able to switch your unit system from Inches to Millimeters which will apply this scale factor for you.

Are you not getting your units set to inches when you bring the data in? (you can check the current unit system under Options > General > Unit system) If not then maybe you are using File/Import instead of File/Open? File/Import is meant to suck in the contents of another file and accumulate / merge it into the current file rather than replacing the whole current file with the given file. But that also means that some file-level settings like the current unit system will not be changed when you do a File/Import. If you do a File/Open then that will bring in the unit system as well.

After you have opened the file and your units are set to Inches, you can also set up a keyboard shortcut for switching to Millimeters to make that scaling easier. To do that go to Options / Shortcut keys, and add in a new entry. For the command put in this:

script:moi.geometryDatabase.units = 'Millimeters';

With that in place you should be able to convert to millimeters and apply your scale factor with one keystroke. Maybe check under Options > General > Unit options to see that "Scale on unit system change" is enabled, it is by default.


> Also, while on the exporting subject...any way to tie the mesh angle
> down? Constantly setting it isn't a show stopper, but would be nice
> if it was persistent or the default could be user set.

It should be remembered automatically while inside the same program session.

But there is not currently a way to set the initial default for the initial use. I'll add in an option to enable setting the default for this in the moi.ini file.

- Michael