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

Change Units

Community Beginner ,
Feb 13, 2015 Feb 13, 2015

Copy link to clipboard

Copied

How to change Units to cm in Illustrator using Javascript

TOPICS
Scripting

Views

609

Translate

Translate

Report

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

Copy link to clipboard

Copied

active.document.rulerUnits.Centimeters;

I think the above line changes the units to centimeters

Votes

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Reference below article:

Re: Set unit preferences (Javascript)

Ten

Votes

Translate

Translate

Report

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