Skip to main content
rcraighead
Legend
April 9, 2017
Answered

Action to add specific dimension to left and right side of current Artboard?

  • April 9, 2017
  • 4 replies
  • 4611 views

I have an Action that sizes a single Artboard based on a user-defined rectangle. Later in the Action I want to automatically add 1mm to each side of the Artboard. Is this possible in an Action? I see no way to "add" to the current size since Actions have no variables. As a workaround I have tried to have the Action at least open the "Artboard Options" dialog, but this does not appear to be an "Actionable" event. Right now my only options seem to be a "STOP" directing the user to add to the Artboard size "manually" or have the redefine a rectangle that can be used to update the artboard size.

Any ideas?

This topic has been closed for replies.
Correct answer Kurt Gold

There are just three modifications required to add the dimensions only to the left and right side of the artboard. Example:

artboard_extender_left_right.aia.zip - Google Drive

By the way, I realized that the most recent English versions of Illustrator have some localisation issues with actions that are made with an international non-english version of Illustrator. If the action doesn't work in CC 2017 (english) it probably has to be re-recorded in that version in order to work properly.

4 replies

Inspiring
July 30, 2023

Sadly, I don't seem to be able to access this. It's hidden behind some sort of controlled area.

Kurt Gold
Community Expert
Community Expert
July 30, 2023

It has something to do with a major change that Google introduced a while ago when it comes to access older download links. Looks like one has to first ask for some sort of unlocking the links. I will take a look for a way to generally unlock them, but that may take some time.

 

Inspiring
July 30, 2023

Thanks Kurt.

Kurt Gold
Community Expert
Community Expert
April 10, 2017

Kobold Productions sincerely presents Craighead’s Artboard Extender:

craighead_artboard_extender.aia.zip - Google Drive

To test:

- Open a new document.

- Load the .aia file.

- Make sure that Align to Artboard is turned on in the Align palette.

- Play the action.

The sample action adds 5 mm to each side of the artboard. You can modify that value in action step 18.

rcraighead
Legend
April 10, 2017

Kurt, you're the man! This does almost exactly what I need.

I think with a tweak or two it'll be there. I am actually trying to only expand the left and right sides of the artboard. I will work with the ideas you've given me and see if I can make the adjustment needed.

It really helps to have a fresh perspective! Really appreciate it.

Kurt Gold
Community Expert
Kurt GoldCommunity ExpertCorrect answer
Community Expert
April 11, 2017

There are just three modifications required to add the dimensions only to the left and right side of the artboard. Example:

artboard_extender_left_right.aia.zip - Google Drive

By the way, I realized that the most recent English versions of Illustrator have some localisation issues with actions that are made with an international non-english version of Illustrator. If the action doesn't work in CC 2017 (english) it probably has to be re-recorded in that version in order to work properly.

Kurt Gold
Community Expert
Community Expert
April 10, 2017

Can you share the .aia file and include some instructions?

Doug A Roberts
Community Expert
Community Expert
April 10, 2017

would it be possible to create a rectangle, use that to define the artboard size, then remove the rectangle, as part of the action? since it seems you can both set notes for objects and select objects by their note.

rcraighead
Legend
April 10, 2017

Hi Doug,

Yes, that'll be my workaround. I was just hoping not to force the user to input more numbers since I simply need to add a specific amount to each side of the the artboard.

Not knowing Javascript is my real challenge.

Doug A Roberts
Community Expert
Community Expert
April 10, 2017

ah i see. the initial artboard is not a set size.

i wish i had more time to devote to scripting too. there was a period a few years ago where i learned some basics, but never had a chance to progress further.