Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

How to change document units?

$
0
0

I have some documents in Points that I want to set to Millimeters using a JSX script, then save them.

I have tried the following code:

 

var document = app.activeDocument;

document.rulerUnits = RulerUnits.Millimeters;

document.units = RulerUnits.Millimeters;


After executing, the document (File > Document Setup > Units) and the ruler are still in Points.

Is it possible to change the unit by script?



Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>