Question
How to correctly change the common units of the current document?
To change current documet units I use this:
function setUnits() {
var units = 5; //(0 to 6)
app.preferences.setIntegerPreference("rulerType", units);
}
When I say "current documet units" I mean the units of measurement in the transformation window and on the ruler.
However, in order to “see” the new units of measurement, you need to create a new document.
How can I make these changes appear in the current document?
