Skip navigation
Currently Being Moderated

CS6: Measure a shape’s area?

Jan 5, 2013 10:10 AM

Hi there!

 

With Illustrator CS6, is there a way to measure/calculate the enclosed area of a given vector shape?

 

Thanks

Klaus

 
Replies
  • Currently Being Moderated
    Jan 5, 2013 10:37 AM   in reply to Klаus

    Klaus,

     

    I hope this thread will help you.

     

    http://forums.adobe.com/message/4742474#4742474

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 5, 2013 11:01 AM   in reply to Klаus

    why not? then what is it what you need?

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 5, 2013 1:26 PM   in reply to Klаus

    Then why don't you just ask how to handle scripts?

     

    Copy the line of code into a text document (ASCII), save it as a .jsx in Illustrator program folder > Presets > Scripts, restart Illustrator and select from  File > Scripts.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 6, 2013 1:33 AM   in reply to Klаus

    did they know at that time that 3 months later, Klaus was going to need square mm?

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 6, 2013 4:56 AM   in reply to Klаus

    Find it somewhat surprising that such an «area feature» isn’t included in the standard Illustrator features set

     

    Indeed, Klaus.

     

    And it is noteworthy that CS6 is the worst version in terms of hidden solutions and use of ready external means.

     

    As a joke you could save the object in question, place it in a new document in 10 (the one before (the first version of) CS), apply the free Patharea filter from Telegraphics, and see the area.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 8, 2013 7:09 PM   in reply to Klаus

    I'm sorry to be so ignorant, but could someone please provide what precisely needs to be copied into the text document and saved as .jsx (in order to calculate the area of any given vector shape in Adobe Illustrator CS6)? I've tried several variations of the code from the above link, with and without the beginning "alert" and parenthesis, and with or without the closing semicolon, but am always getting a syntax error when I try to launch the script in Illustrator.

     

    Thanks for your help.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 8, 2013 8:23 PM   in reply to VisualAmplitude

    This is the line


    alert("Area & Length\nArea: " + (app.activeDocument.selection[0].area/5184).toFixed(3) + "\nLength: " + (app.activeDocument.selection[0].length/72).toFixed(3));

     

    This is for inches to 3 decimal places.

     

    Copy the above and paste into a new window in either the ExtendScript Tool Kit (ESTK found in Applications/Utilities/Adobe Utilities) or in a text editor. If you use the text editor make sure you save it as plain text with a .jsx extension. Place it in the Application/Adobe Illustrator CSX/Presets/en_US/Scripts folder and restart. Open a file, select an object and run the script from File/Scripts.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points