Skip to main content
Participant
May 31, 2022
Answered

Create shape when making new doc in illustrator

  • May 31, 2022
  • 3 replies
  • 321 views

Is there a way to tell illustrator to create a shape that is the same size as the art board when creating a new doc? 

EX: I'm creating a wall wrap that is 158x103.

- I start by creating a new file with the art board set at those dimensions.  

- The I have to create a box that is the same size as the art board. 

 

My Question - Can illustrator create a shape to the art board size automatically without me having to put the document size in twice? 

This topic has been closed for replies.
Correct answer Mike_Gondek10189183

That would be a nice feature for the rectangle tool.:)

 

Best you can do without scripting,  is with any document in correct color mode open

  1. select and delete all
  2. create a rectangle to size 
  3. artboard tool>> fit to selected art
  4. save as to a new filename

 

 

3 replies

femkeblanco
Legend
May 31, 2022

If all you want is a rectangle the same size as the artboard, that can be done with one line of code.

app.activeDocument.pathItems.rectangle(0, 0, app.activeDocument.width, app.activeDocument.height);
Mike_Gondek10189183
Community Expert
Mike_Gondek10189183Community ExpertCorrect answer
Community Expert
May 31, 2022

That would be a nice feature for the rectangle tool.:)

 

Best you can do without scripting,  is with any document in correct color mode open

  1. select and delete all
  2. create a rectangle to size 
  3. artboard tool>> fit to selected art
  4. save as to a new filename

 

 

Participant
May 31, 2022

Thanks!

CarlosCanto
Community Expert
Community Expert
May 31, 2022

yes, it's possible with a script. Are you trying to write your own scripts?

Participant
May 31, 2022

Potenitally - Not sure how to set that funtionality though