Toggle units - shortcut?

Toggle units - shortcut?

oleksandr_velihorskyi
Enthusiast Enthusiast
2,843 Views
3 Replies
Message 1 of 4

Toggle units - shortcut?

oleksandr_velihorskyi
Enthusiast
Enthusiast

Dear community, 

how can I now toggle the units between mm and mils with some shortcut hotkey? Is it possible? for now I have used G and then selected mils or mm in grid setting. But it is not so convenient. ULP script and hotkey? SET UNITS MM doesn't work...  

0 Likes
Accepted solutions (1)
2,844 Views
3 Replies
Replies (3)
Message 2 of 4

chuck_toddN7PTC
Advocate
Advocate
Accepted solution

Here is one way to get it done. Create shortcuts for each unit. See highlighted rows in image below.chuck_toddN7PTC_0-1744743313044.png

 

BR -Chuck

 

Chuck
Message 3 of 4

Evert_2N3055
Advocate
Advocate

I made a simple ulp to toggle trough the grid unit's.

Save the below ulp to your local drive.

Make a new shortcut in Fusion with the a key combination of your choice, enter as command Run c:\yourpath\togglegrid.ulp

 

Note: After running the ulp you see the units change only after moving your mouse a bit.

 

grid.png

 

Message 4 of 4

oleksandr_velihorskyi
Enthusiast
Enthusiast

I have tried something similar, but it looks like "unit" is not supported. I have faced the error "unknown identifier unit" with your ulp script too.

0 Likes