Get system units
Hello,
Is there any way you can get the current system unit type, store it, change the systemtype for your script and restore the system type to the original one at the end of your script?
Example :
My script works in meters but the guy using it is set up in inches.
How do I get to know if he has inches, feet, ... so I can temporary change the setup in meters for my script to work properly and then restore it to inches so the user has no problems.
I know how you can set the units ==> " units.SystemType = #meters "
but I don't know how to get the current units
If i try ==> " Variable = units.SystemType " I get an error...
grtz
Comments
This also works.( case
This also works.
In the listener will be printed the current unit type
Tools and Scripts for Autodesk 3dsMax
var = units.SystemType works
var = units.SystemType
works fine here...It does...
Very weard... I tested it again and it does work indeed!
Thank you !! Maybe I messed up the part of the script where I put it in.
Sorry for the trouble : )
Grtz