Automatic dimension detection future request maybe?

 From:  Michael Gibson
11751.12 In reply to 11751.7 
Hi Matadem,

re:
> How do I setup when I start a new drawing either in mm, cm , inch etc
>
> so I can predefine the grid for each type of measurements?

Currently grid properties are global. There isn't anything built in for storing them in a template file but you could set up a script to help with that.


> Let say if it is in mm ...the grid is set at 1
> if it is in cm the grid is set at 0.5

A script that would set this goes like this:

script: if ( moi.geometryDatabase.units == 'Millimeters' ) { moi.grid.size = moi.grid.snapSize = 1.0; } else if ( moi.geometryDatabase.units == 'Centimeters' ) { moi.grid.size = moi.grid.snapSize = 0.5; }

Or another possible way is you could set some values in document user text under File > Notes > Document user text and then the script could look there to get the size to set. Let me know if you want to try that way.

You can open a file as a template file by using right click on the File > Open instead of left click.

- Michael