Skip to main content
Known Participant
November 4, 2012
Answered

Is it possible to resize all artboards at once the way you used to be able to do in document set-up?

  • November 4, 2012
  • 4 replies
  • 84944 views

I have a document with 20 Artboards. When I resize one it only changes that one. I'm in CS5. Is it possible to resize all artboards at once the way you used to be able to do in document set-up? Many thanks!

This topic has been closed for replies.
Correct answer W_J_T

That's a vrry good script but t does not allow you to resize certain artboards and not tohers and i you have to select certain artboards and not others you will eentually have to manually slect artboards, master artboartds would be ab better.

However if someone had to do certain ones under current conditions one could draw a rectangle on one artboard then command copy the rectangle and either go from one artboard to the next that they needed changed and paste in place then selct all of thi=ose rectagles and go to Object>Artboards>Convert to Artboards

Or draw one rectangle on one artboard and then copy and paste on all artboards and the deselect the ones you don't need with the command control click anthen convert the remaining selected to artboards then you use the artboard panel to delete the olderr version of the artboards.  The use the pnel to rearrange the artboards which will renumber the boards and respace them as well.


Wade_Zimmerman wrote:

That's a vrry good script but t does not allow you to resize certain artboards and not tohers

@ Wade

You could recode it and setup a confirm in the loop to determine if you want to resize the current artboard in the iteration of the loop, if no then skip it, if yes then prompt for sizes and proceed. Then you could resize which ever ones you desire as such, some and not others. You could even distinguish with each confirm and prompt what artboard is being targeted by displaying its name. I tested this approach and it seems to work ok, but not super elegant of course, because if you have tons of artboards this would be a lot of prompts/input. You could lesson the prompts by combining the width/height into a single prompt. But then again even at that point its just as efficient to resize each manually via the ArtBoards Window, probably the same amount of work/user input when dealing with and targeting individual artboards. You could perhaps alternatively create a window script for multiple input for the desired artboards, perhaps based upon those which are selected and build your window dialog accordingly, I suppose at that point it would offer a more efficient approach for that type of thing which you seem to be describing.

But having said all that we would then be way beyond the original request which CarlosCanto already so generously fulfilled. Perhaps he will have some further input on your comments.

4 replies

mirza5313
Known Participant
September 30, 2019

Yes, you can change all ARTBOARD size at once, watch here:

 

https://www.youtube.com/watch?v=NoPungS8KXI

Sachinji
Participating Frequently
May 7, 2015

Very useful script. You are ingenious Carlos Canto.

Inspiring
November 5, 2012

When you could resize the docuemtn with documant set up there were no artboards and there was only one size to the document and there was only one page in that document so you have never been able to do what you suggest but there is no reason that it could be a feature request as an enhancement for the artboard feature. Keep in mind though that a document can contain various sized artboards and that might mske the feature you suggest no easy task to develope and in order to make your feature request work you would have to think it out and suggest how this problem would be overcome with such a request.

One of the major problems with this is that you can only select one artboard at a time, on the canvas that is. So if the suggestion is the resize all slect artboards this problem to would have to be overcome.

The only way I think it might work is if there were master artboards and you chaned the size of the master artboard and then all the artboards belong to that master artboard type would then change which would not affect artboards belonging to another artboard type.

But since the feature does not exist you have to go with Scott's answer.

CarlosCanto
Community Expert
Community Expert
November 5, 2012

it could be done, a way to ask for it in a feature request could be to allow multi-selection in the artboards palette, then the rest would be exactly the same way it currently works, changing the size in the control panel would resize all artboards selected in the palette.

 

here's a script that resizes ALL artboards (from the certer), with some more work, a dialog could be added, adding the functionality described above.

 

#target Illustrator

 

 

//  script.name = resizeArtboards_CS4andUp.jsx;

//  script.description = resizes all artboards;

//  script.requirement = one document with at least one artboard;

//  script.parent = carlos canto // 11/4/12;

//  script.elegant = false;

 

if (app.documents.length > 0) {

 

 

        //alert("more than 0");

                    var idoc = app.activeDocument;

 

 

        var title = "Resize All Artboards";

 

 

        var width = Number(Window.prompt ("Enter New Artboard Width in points", 612, title));

        var height = Number(Window.prompt ("Enter New Artboard Height in points", 792, title));

 

 

    for (i=0; i<idoc.artboards.length; i++) {

        var abBounds = idoc.artboards[i].artboardRect;// left, top, right, bottom

 

 

        var ableft = abBounds[0]; // 0

        var abtop = abBounds[1]; // 612

        var abwidth = abBounds[2] - ableft; // 792 // width

        var abheight = abtop- abBounds[3]; // 0 // height

       

        var abctrx = abwidth/2+ableft;

        var abctry = abtop-abheight/2;

            

        var ableft = abctrx-width/2;

        var abtop = abctry+height/2;

        var abright = abctrx+width/2;

        var abbottom = abctry-height/2;

       

        idoc.artboards[i].artboardRect = [ableft, abtop, abright, abbottom];

    }

}

else  {

        alert ("there are no open documents");

}

Participant
July 24, 2020

Hi Carlos!

 

Please help me with this error after importing the script and artboard sizes input:

 

_scott__
Legend
November 5, 2012

Nope.

Participant
March 7, 2016

yes, you can do, if you know the percentage   i have designed android app in mdpi screen (360 X640) but later i had to convert that in to xxhdpi size... i was struggling to resize nearly 30 artboards... done this changing image size in percentage ( 300%)..