Copy link to clipboard
Copied
How to change Units to cm in Illustrator using Javascript
Copy link to clipboard
Copied
active.document.rulerUnits.Centimeters;
I think the above line changes the units to centimeters
Copy link to clipboard
Copied
rulerUnits is read only unless you are making a new document with a preset. See reply 3 from Larry G. Schneider‌ here: Re: changing ruler units?.
Aditionally, if you want the active document you reference app.activeDocument.
Copy link to clipboard
Copied
Find more inspiration, events, and resources on the new Adobe Community
Explore Now