Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Change Units

Community Beginner ,
Feb 13, 2015 Feb 13, 2015

How to change Units to cm in Illustrator using Javascript

TOPICS
Scripting
661
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Participant ,
Feb 16, 2015 Feb 16, 2015

active.document.rulerUnits.Centimeters;

I think the above line changes the units to centimeters

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 04, 2015 Jun 04, 2015

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 09, 2015 Jun 09, 2015
LATEST

Reference below article:

Re: Set unit preferences (Javascript)

Ten

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines