Is there a way to script document tolerances?


(Marc Gibeault) #1

Hi all,
I need to create startup script that sets units and tolerances to new values and it needs to work in v4. Any hope?

Thanks,

-Marc


(Dale Fugier) #2

You could just create a template file with all the setting you want or need. Then just have Rhino use that template file when it starts.

Tools -> Options -> Files

No script needed…


#3

This is easy to make, but as Dale says, if you need it AT startup, then it makes more sense to make a template.

If you still need a Script then let us know what values you need.


(Marc Gibeault) #4

Yes, I know that and all users are using the same template already.
But I need a way when opening and importing documents too.


#5

Opening a document will set the file units correctly if the document being opened has units attached. Otherwise, open a template with the desired units and use Import, not Open.

–Mitch


(Marc Gibeault) #6

Hi Mitch,

I’m well aware of that but it doesn’t help.

I have a lot of users and want to cover every possibilities.

@Holo; the values are:
Units: Inches
Abolute tolerance: 0.00004 units
Relative tolerance: 0.1 percent
Angle tolerance: 0.1 degrees

I know these values are not at all optimal for any logical purpose. It’s a compromise I have to make in a world with 20 000 engineers around me.
I know too that any geometry made before the tolerance is changed will stay as it is and may not behave when modifying / editing etc.


#7

Hi Marc,

The following should do what you want… You can modify the coded-in values to suit if you need.

HTH, --Mitch

SetFileUnitsTolerances.rvb (729 Bytes)


(Marc Gibeault) #8

Thanks Mitch, that’s perfect!