Print

Print


Very Interesting!

Thanks!!!

*absar ahmed*

*design / direction / consultancy*
*+92 321 2226399  /  twitter <https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_mrAbsarAhmed&d=DwIFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=AGYZ7-AeerjxzYnIwL-lBLFI3SPYN3BDmku4qGQB4Tg&m=hdtEAakn3Sv8zDzzbcrqfZS0mWfBdgtgvNbPFlBQ4Po&s=wvhzRo0K8Fr4bYAZylLVvb2l0T43qKIq59Jtx5JNQnM&e=>*


On Sat, 1 Dec 2018 at 02:53, Karen Ackoff <[log in to unmask]> wrote:

> This question came up on my user group forum, and I thought it might be of
> interest to some here.
>
> I refer to Adobe Illustrator (2018) here.
>
> The question was - how do I calculate the area of an open curve? Some
> discussion ensued, and one user commented that an open curve does not have
> an area… but if you choose to fill the open curve, you will see that it
> does.
>
> In early versions of Illustrator you could bring up something called an
> “Object Tree” by opening the DeBugging palette - Command+Option+Shift+F12.
> But trying this, nothing happened. The Properties panel provides width,
> height and X- and Y-axis info. But the area of a shape or open curve is not
> provided.
>
> So not shying away from a challenge, this is what I came up with:
>
>
>    1. I opened TextEdit (NotePad for PC folks). I chose Format > Plain
>    Text.
>    2. Paste this code into the document: alert("Area & Length
>    (inches)\nArea: " +
>    (Math.abs(app.activeDocument.selection[0].area/5184).toFixed(3)) +
>    "\nLength: " + (app.activeDocument.selection[0].length/72).toFixed(3));
>    3. For reference: this script came from:
>    https://urldefense.proofpoint.com/v2/url?u=http-3A__blog.k8baldwin.com_Finding-2Dareas-2Dand-2Dlengths-2Din-2DIllustrator-2Dtd4.html&d=DwIFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=AGYZ7-AeerjxzYnIwL-lBLFI3SPYN3BDmku4qGQB4Tg&m=hdtEAakn3Sv8zDzzbcrqfZS0mWfBdgtgvNbPFlBQ4Po&s=aMqMJ2Ua3DXL0fFRN-3UA6a-T-RU29LuB_tRm-9r-Q0&e=
>    <https://urldefense.proofpoint.com/v2/url?u=http-3A__blog.k8baldwin.com_Finding-2Dareas-2Dand-2Dlengths-2Din-2DIllustrator-2Dtd4.html&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=AGYZ7-AeerjxzYnIwL-lBLFI3SPYN3BDmku4qGQB4Tg&m=ziDaxwCkrVtjo87AUjeLVkzJIQ9_nsvxylqEh1xCJ9E&s=KM7pAMDbLL1-zWyoW5dhBf-DHd6F8ygThk7XuIqq-jU&e=>
>    4. Save the script as “AreaLength.JS”.
>    5. In Illustrator, create the desired shape or curve. Select it.
>    6. File > Scripts and choose the script you just made. The length and
>    area will be displayed. For an example, see here:
>    https://urldefense.proofpoint.com/v2/url?u=http-3A__karenackoff.net_z-2Dmisc_calculate-2Darea.png&d=DwIFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=AGYZ7-AeerjxzYnIwL-lBLFI3SPYN3BDmku4qGQB4Tg&m=hdtEAakn3Sv8zDzzbcrqfZS0mWfBdgtgvNbPFlBQ4Po&s=zbY8rU40GNbtX-e3qZ3k6OymsV-Irx51UKLc_jxKKk0&e=
>    <https://urldefense.proofpoint.com/v2/url?u=http-3A__karenackoff.net_z-2Dmisc_calculate-2Darea.png&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=AGYZ7-AeerjxzYnIwL-lBLFI3SPYN3BDmku4qGQB4Tg&m=ziDaxwCkrVtjo87AUjeLVkzJIQ9_nsvxylqEh1xCJ9E&s=0M4x6W0RK2aAjo4JDmGQE_c4Ra4Qcrsnf4ThsWR5tC4&e=>
>
>
> I’m sure with some tweaking the script could be adapted further. But I
> thought it was a nifty trick.
>
> Enjoy. K
>
> ________________________________________________
>
> Need to leave or subscribe to the Sciart-L listserv? Follow the
> instructions at
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.gnsi.org_resources_reviews_gnsi-2Dsciart-2Dl-2Dlistserv&d=DwIFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=AGYZ7-AeerjxzYnIwL-lBLFI3SPYN3BDmku4qGQB4Tg&m=hdtEAakn3Sv8zDzzbcrqfZS0mWfBdgtgvNbPFlBQ4Po&s=DVNyKwb73gYpqzHYxBj1E_20G1MGVQAYxK3nFODzdwg&e=
>

Subscribe to Sciart-L by completing the form at https://listserv.unl.edu/signup-anon

List name is Sciart-L

To unsubscribe, complete form at https://listserv.unl.edu/signup-anon?UNSUB=1

Problems: Email Lana at [log in to unmask]