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.
1Hi user44431, you can select the Rectangle tool and drag from one corner to the other and arrange as the most bottom layer. What part are you having trouble with?– AndrewHMay 27, 2015 at 19:32
1That's no help if you want the rectangle to be 100% perfect fit to the artboard. You can 100% perfectly align a new artboard to an existing rectangle, by clicking on it with the artboard tool, but it's not so easy the other way around. I have this problem often and have a couple of workarounds using smart guides or align window but I'm not really happy with either. Hope this gets a good answer.– user56reinstatemonica8May 27, 2015 at 19:46
Thank you. I just don't want to look stupid when the art director asks how I managed to draw outside the lines. I'm more familiar with photoshop.– user44431May 27, 2015 at 20:40
- Switch to the Artboard tool (Shift+O)
- Note the
Hmeasurements 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
Hmeasurements you noted from the artboard
- Set the Align panel to
Align to Artboard
- Click the
Center Verticalbuttons on the Align Panel.
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.
Scott, if I have a 2x2 inch doc and I set the X and Y value to 1 inch, would this make it absolute centered as well?– AndrewHMay 27, 2015 at 20:45
1@AndrewH if you have the 9-point origin set for the center of the rectangle, then X/Y at 1 would center it on a 2x2 artboard. It all really depends upon the 9-point setting for the rectangle. If the 9-point origin is set to anything other than the center of the rectangle X/Y of 1 won't work. Aligning is just easier and less prone to errors since it uses object bounds rather than the 9-Point origin setting.– ScottMay 27, 2015 at 20:58
And... with aligning you don't need to do any math to divide the w/h in half to set the XY correctly.... of course, you could set the 9-point origin to the top left then input an X/Y of 0 and that would work.– ScottMay 27, 2015 at 21:03
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, r, r-r, r-r);
you can also just click on the art board and then type the dimensions that you want the square to be, then use the align answer that Scott has just told you about.