Skip to main content
ferdi_
Known Participant
January 15, 2017
Answered

Convert arboards to objects

  • January 15, 2017
  • 2 replies
  • 1678 views

Hi! I want to make arboards to objects to transform sizes. I don't know if I can do it... Can you help me?

Thank you!

This topic has been closed for replies.
Correct answer Ton Frederiks

Oh, now it lets me click the original image to enlarge. Lovely. Not sure why it didn't do that when I clicked on it originally, before I responded to my own post with a larger version of the image. Amazing.


Kathryn, 

just use the default text editor on your Mac; TextEdit

Create a new document in TextEdit and choose Format > Make Plain Text

Paste the 3 lines of code and save the file on your desktop with a .js or .jsx extention.

To use it select the file in Illustrator from File > Scripts > Other Scripts

Or first copy it to your Illustrator Application folder > Presets > Your Language folder > Scripts 

to make it accessible in the File > Scripts menu.

2 replies

ferdi_
ferdi_Author
Known Participant
January 17, 2017

Hi Kurt! I'm using CC 2015 *Mac.

I'm doing some planners in different sizes and I like to use objetcs to move it or change a colour, for example.

I forgot to copy the object (rectangle) and paste it in front before convert to artboard and close the file. So I have to draw the rectangles again. I think in these cases, it would be very useful and fast if we can convert artboards to objects.

Thank you very much for your reply!

Kurt Gold
Community Expert
Community Expert
January 16, 2017

Which version of Illustrator are you using?

In case it's a recent version, why don't you just use the Artboard tool to change the size of your artboards?

ferdi_
ferdi_Author
Known Participant
January 17, 2017

Hi Kurt! I'm using CC 2015 *Mac.

I'm doing some planners in different sizes and I like to use objetcs to move it or change a colour, for example.

I forgot to copy the object (rectangle) and paste it in front before convert to artboard and close the file. So I have to draw the rectangles again. I think in these cases, it would be very useful and fast if we can convert artboards to objects.

Thank you very much for your reply!

CarlosCanto
Community Expert
Community Expert
January 17, 2017

use this script, it will draw a rectangle the size of the active artboard.

 

var idoc = app.activeDocument;

var r = idoc.artboards[idoc.artboards.getActiveArtboardIndex()].artboardRect;

idoc.pathItems.rectangle(r[1], r[0], r[2]-r[0], r[1]-r[3]);