I'm bummed about the uncertainty of the units (mm or point).
I have set the scale ahead of time to convert the units to mm:
app.documents.item(0).viewPreferences.horizontalMeasurementUnits = MeasurementUnits.MILLIMETERS;
app.documents.item(0).viewPreferences.verticalMeasurementUnits = MeasurementUnits.MILLIMETERS;I get a value 100 from the file name(100):
myWidth = Number(getFileName[1]);Then assign the size in the object style:
w.transformAttributeOptions.transformAttrWidth = myWidth;Sometimes it's correct, it's 100mm.
But sometimes the result j is 35.278 mm.
Then I know it treats it as 100 points.
How can I make sure that "w.transformAttributeOptions.transformAttrWidth" always gets 100mm?
