Illustrator CS6- How do I draw a rectangle to perfectly fit my artboard?


Is it possible to drag a rectangle to fit my template? I already have bleed markers in a layer for guides, but I want the general background to look a color other than white.

5/27/2015 7:18:00 PM

Accepted Answer

  • Switch to the Artboard tool (Shift+O)
  • Note the W and H measurements in the Control Panel across the top of the screen
  • Grab the Rectangle Tool and click once on the artboard (just click, no drag)
  • This brings up the Rectangle Options dialog. Input the W and H measurements you noted from the artboard
  • Set the Align panel to Align to Artboard
    enter image description here
  • Click the Center Horizontal and Center Vertical buttons on the Align Panel.
    enter image description here

That will create a rectangle the same size as the artboard then align it to the artboard.As far as I'm aware, this the best you'll get. There's no automated method to create a rectangle at the artboard bounds.

5/27/2015 8:12:00 PM

or use this script that draws a rectangle on 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]);