Skip to main content
Known Participant
June 1, 2023
Answered

Script calculating a given size of area for a given object

  • June 1, 2023
  • 2 replies
  • 2812 views

I work a lot with car decals and designs in illustrator. It would help a lot with a script which would calculate the area in square meters for given objects. For now i have to manually calculate and punch the actual numbers on a calculator. Time consuming. Should be easy to extrat this data from the program some how. Does anyone now if it exists a script for this?

This topic has been closed for replies.
Correct answer Doug A Roberts

Microsoft Word saved as plain text. On save It is a dialogue box with a number of options.  I have tried all of them. No success.


I'm not sure I'd trust Word to save actual plain text regardless of what it says.

Either use an actual text editor or go to the URL for the raw text on Git and save the page directly:

https://gist.githubusercontent.com/bryanbuchanan/11387501/raw/dcdf4810bce2e62c7bf14c4a54ace3d692410fec/GetShapeArea.jsx

2 replies

Doug A Roberts
Community Expert
Community Expert
June 1, 2023

There is a script here that does just that:

https://gist.github.com/bryanbuchanan/11387501

 

Readsing the thread on that git page, another user seems to have adapted it with ScriptUI and selectable units:

https://github.com/schroef/Illustrator-Scripts/blob/master/GetShapeArea-dialog-v005.jsx

Jacob Bugge
Community Expert
Community Expert
June 1, 2023
Doug A Roberts
Community Expert
Community Expert
June 1, 2023

I just saw you in that Git thread Jacob and thought I might find you here.

Jacob Bugge
Community Expert
Community Expert
June 2, 2023

And you did, Doug (late in spotting htis).