Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Batch Generating Artboards from Data Sets in Variables

Community Beginner ,
Nov 04, 2021 Nov 04, 2021

Copy link to clipboard

Copied

Hi all,

 

I have recently discovered the variables tool, and I find it very useful to autopopulate text boxes with a list of variables from a .csv file. Once I have loaded a variable library and generated Data Sets, my next step is to generate an indivudal artboard for each item (i.e. "Data Set 1", "Data Set 2", etc.). However, the only way I have found to do this is manually click "Next Data Set", select the cooresponding artboard with the artboard tool, copy, paste, and repeat. Has anyone encountered this problem and found a solution? Is there an easy way to script this process?

 

Best,

Alex

TOPICS
How to, Scripting

Views

91

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Nov 04, 2021 Nov 04, 2021

Copy link to clipboard

Copied

Which version of Illustrator are you using?

 

Can you share a sample file including some variables and some further instructions in order to clarify the matter?

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 04, 2021 Nov 04, 2021

Copy link to clipboard

Copied

Hi Kurt,

 

Sharing an example file here along with a few screen shots for clarification. Thanks for requesting! Looking forward to any input you can provide. Much appreciated!

 

Best,

Alex

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 04, 2021 Nov 04, 2021

Copy link to clipboard

Copied

I was having trouble uploading the example file. Sharing it via a link here: https://assets.adobe.com/id/urn:aaid:sc:US:15a2d4ab-7929-4dd6-80f0-5b64d184351e?view=difile

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Nov 04, 2021 Nov 04, 2021

Copy link to clipboard

Copied

You could do this: you can make such an action that copies and pastes some rectangle, then moves it a certain amount right-wards. If you make a copy of that copy to store in the new xy position, you can take your first copy and run the "convert rectangle to artboard" command in the Object > Artboards menu item.


You'd probably have a starting rectangle with a special note, make a copy of that rectangle in place, change its note to a temporary note, then you select all art on active artboard (via menu item) and duplicate it (if you wish to include all the art), move-copy that art into a new place. Then have your action select your temporary note and make a copy of this rectangle and use the convert-to-artboards command. Now your extra copy will create an artboard for you, but it will still be there, so you can clear it out as it should be the only selected item now. If not, you can do all kinds of notes so as to be able to deselect all, select just the noted rectangle and delete it.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 05, 2021 Nov 05, 2021

Copy link to clipboard

Copied

Thanks for your reply Silly-V. If I understand your solution correctly, this would solve for replicating the artboards, but I'm unclear how I would use this approach to automatically populate the variables with the objects from each data set. This part is key, as I am ultimately trying to convert an excel spreadsheet of variable objects into a panel of artboards with the corresponding text. Am I misudnerstanding your solution?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Nov 05, 2021 Nov 05, 2021

Copy link to clipboard

Copied

No, you use it the same way, you use the Batch Action process to go through the variable data sets, which will automatically populate all variable text as default behavior, but in your batch action you set the "destination" to "None". Your custom action that duplicates and re-annotates rectangles and what-else, it will still be played as part of the batch action process but it won't export any files or save any files anywhere.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Nov 05, 2021 Nov 05, 2021

Copy link to clipboard

Copied

LATEST

Thanks for the sample file, Alex.

 

Silly-V already told that it may be done with an action. Basically, I agree with him, and I can imagine some different and probably promising approaches. Thoroughly listening to his thoughts, you may already suspect that any kind of action route will be kinda hell of a ride in this case. It is doable, but sooner or later inflexible (e.g. the given numbers of datasets may vary often).

 

I'm not quite sure, but I assume that the task can be done with a nifty script altogether. Probably way more efficient than cobbling together a bumpy action.

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines