Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Change working units through a script

Change working units through a script

Anonymous
Not applicable
1,893 Views
1 Reply
Message 1 of 2

Change working units through a script

Anonymous
Not applicable

Hey,

 

I was wondering if there was a way to change the working units (for example centimeters to meters) within a python script. I know you can go from windows -> preference -> settings, but I was wondering if there was a way to automatically do that from code rather than manually

 

Thanks

0 Likes
Accepted solutions (1)
1,894 Views
1 Reply
Reply (1)
Message 2 of 2

mspeer
Consultant
Consultant
Accepted solution

Hi!

 

cmds.currentUnit( linear='meter' )