Creating Multiple Artboards

I thought I'd ask this question here seeing as how everything I've learned about scripting has come from the knowledge everyone shares here (granted, I've only been at this a couple weeks now).
I've searched and searched and have been trying for three days to figure this out but can't.  I've studied the scripts at http://forums.adobe.com/message/5082308#5082308 and tried implementing them but to no avail.
Basically, I have a document with multiple layers, all containing only one item each.  Every placedItem is a tiff, all having the same dimensions.  There could be either 4 or 6 of them, no more, no less.  I'd like to split them up onto multiple artboards but whenever I try, I keep getting multiple boards put in the same location, e.g., stacked on top of one another.  I can't seem to figure out the gridByRow command.
So far, I'm using the following script (that I found here) to build the file, which I've altered to fit my needs.
function getFolder() {
          return Folder.selectDialog('Please select the folder to be imported:', Folder('~'));
function importFolderAsLayers(selectedFolder) {
          // if a folder was selected continue with action, otherwise quit
          var myDocument;
          if (selectedFolder) {
                    myDocument = app.documents.add();
                    var firstImageLayer = true;
                    var newLayer ;
                    var thisPlacedItem;
                    // create document list from files in selected folder
                    var imageList = selectedFolder.getFiles();
                    for (var i = 0; i < imageList.length; i++) {
                              // open each document in file list
                              if (imageList[i] instanceof File) {
                                        // get the file name
                                        var fName = imageList[i].name;
                                        // check for supported file formats
                                        //if( (fName.indexOf(".eps") == -1) ) {
                                        if( (fName.indexOf("Base.tif") == -1) && (fName.indexOf("White.tif") == -1) && (fName.indexOf("Process%20Yellow.tif") == -1) && (fName.indexOf("Process%20Cyan.tif") == -1) && (fName.indexOf("Process%20Magenta.tif") == -1) && (fName.indexOf("Process%20Black.tif") == -1)) {
                                                  // skip unsupported formats
                                                  continue;
                                        } else {
                                                  if( firstImageLayer ) {
                                                            newLayer = myDocument.layers[0];
                                                            firstImageLayer = false;
                                                  } else {
                                                            newLayer = myDocument.layers.add();
                                           // Give the layer the name of the image file
                                           newLayer.name = fName.substring(0, fName.indexOf(".") );
                                           // Place the image on the artboard
                                           thisPlacedItem = newLayer.placedItems.add()
                                           thisPlacedItem.file = imageList[i];
What I'd like to do at this point is spread these layers out to multiple artboards, which have been made based on the number of layers in the file.
3 days!  I'm pulling my hair out.  Can someone help?  Using CS5.

There are a handfull of ways you could go about scripting this… Here is an example of how I would go about it…
I avoid EPS's files where ever possible so this works with TIFF's
As is… it expects all image files to be the same size ( it only tests the first one )
You could test each if the size varies… I've not included the layer sorting but that is easy stuff…
#target illustrator
getImages();
          Get files from user folder selection
function getImages() {
          var inFold, files, size;
          inFold = Folder.selectDialog( 'Wheres the TIFF files?' );
          if ( inFold != null ) {
                    files = inFold.getFiles( /\.tif$/i );
                    if ( files.length > 0 ) {
                              loadXMPLibrary();
                              size = getImageXMP( files[ 0 ] );
                              unloadXMPLibrary();
                              placeImages( files, size );
          } else { return; }
          The main AI document process
function placeImages( list, size ) {
          app.coordinateSystem =
          CoordinateSystem.ARTBOARDCOORDINATESYSTEM;
          var i, abd, cm, doc, item, lay;
          cm = 28.3464567;
          doc = app.documents.add(
                    DocumentColorSpace.CMYK,
                    size[ 0 ] * 72 + 7*cm,
                    size[ 1 ] * 72 + 7*cm,
                    list.length,
                    DocumentArtboardLayout.Row,
                    72
          item = doc.placedItems.add();
          item.file = list[ 0 ];
          item.position = [ 3.5*cm, -3.5*cm ];
          doc.layers[ 0 ].name = list[ 0 ].name.match( /(.*)\.[^\.]+$/ )[1];
          doc.artboards[ 0 ].name = doc.layers[ 0 ].name;
          for ( i = 1; i < list.length; i++ ) {
                    lay = doc.layers.add();
                    lay.name = list[ i ].name.match( /(.*)\.[^\.]+$/ )[1];
                    doc.artboards.setActiveArtboardIndex( i );
                    doc.artboards[ i ].name = lay.name;
                    item = doc.placedItems.add();
                    item.file = list[ i ];
                    item.position = [ 3.5*cm, -3.5*cm ];
          Get the XMP properties…
function getImageXMP( filePath ) {
          var height, width, res, xmpFile, xmp;
          xmpFile = new XMPFile( filePath.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_READ );
          xmp = xmpFile.getXMP();
          res = xmp.getProperty( 'http://ns.adobe.com/tiff/1.0/', 'XResolution' );
          res = res.toString().split( '/' );
          res = res[0] / res[1];
          height = xmp.getProperty( 'http://ns.adobe.com/tiff/1.0/', 'ImageLength' );
          height = height / res;
          res = xmp.getProperty( 'http://ns.adobe.com/tiff/1.0/', 'YResolution' );
          res = res.toString().split( '/' );
          res = res[0] / res[1];
          width = xmp.getProperty( 'http://ns.adobe.com/tiff/1.0/', 'ImageWidth' );
          width = width / res;
          return [ width, height ];
          Load the XMP External Object Library
function loadXMPLibrary() {
          if ( !ExternalObject.AdobeXMPScript ) {
                    try {
                                        ExternalObject.AdobeXMPScript = new ExternalObject( 'lib:AdobeXMPScript' );
                                        return true;
                    } catch(e) { return false; };
          Unload the XMP External Object Library
function unloadXMPLibrary() {
          if ( ExternalObject.AdobeXMPScript ) {
                    try {
                              ExternalObject.AdobeXMPScript.unload();
                              ExternalObject.AdobeXMPScript = undefined;
                              return true;
                    } catch(e) { return false; };

Similar Messages

  • [How-to] Create multiple Artboards in existing document?

    Herro,
    I'm wondering how to create multiple artboards at once in an existing document. I can manually re-arrange them later, that's fine. But I often find myself needing to create 20+ artboards for some of my complex projects.
    Currently, adding those 20+ artboards manually is a pain as you can imagine.
    Help?
    Cheers.

    open the Artboards panel. (Window->Artboards)
    then down the bottom start clacking away at the new artboard button.

  • Preview multiple artboards in bridge

    Hi,
    I am using the subscription service so I have the most current version of illustrator and Bridge.  When I create multiple artboards in an illustrator file and I then preview that file in Bridge I am only able to preview one page/artboard at a time.  What I would like to do is see an overview of the illustrator file and all artboards at once with the ability to zoom in and out in bridge at high resolution the more I zoom in.
    I have found if I save my illustrator file with the "create pdf compatible file" option not checked it does work but it does not allow me to see a hi-res preview of the entire file (all artboards at once) in bridge.  I am just let with a low res preview of the entire file.
    Any help is appreciated.
    Thanks

    The next question is how do you re-order artboards?  In other words, if I add a new overall artboard and it becomes #5, how do I change it to become number one and push all the numbers for the other artboards up a number?

  • How do I create multiple-up pages populated with variable data?

    I am trying to create a variable data Illustrator file but with a catch, I have to create multiple points of data on one artboard.  I am using a template with 36 identical shapes, and I'm trying to add a different image to each based off of using variable data.  I understand the premise of creating multiple output files based off of an illustrator file and data, but I have to create a single output file using 36 points of data, all QR codes.  The reason is that this 36-up 14.5" x 14.5" sheet will be printed on a large format inkjet and then be fed into another machine (not a cutter) that requires that specific layout for it's process.  I cannot create individual files, I need sheets based off of my 14.5" x 14.5" 36-up template.
    Any suggestions other than making each shape in the template a separate variable (even though they are all the exact same shape) would be greatly appreciated.
    My goal is to populate each of these shapes with a different QR code and then output the whole sheet as a single .EPS or .PDF file.

    My goal is to populate each of these shapes with a different QR code and then output the whole sheet as a single .EPS or .PDF file.
    You're barking up the wrong tree for this with Illustrator's Variables palette.
    Think of it like this:
    Imagine a typical spreadsheet with multiple rows of the same kind of data, except for the first row which serves as the "labels" of the columns.
    The on-page objects which you define as Variables in Illustrator correspond to the first row; the column labels.
    The datasets correspond to the following rows of values below the label row.
    Cycling through the datasets simply moves up and down the rows, revealing one row's data at a time for each of the column labels.
    Your multi-up array does not fit that data model. You are essentially trying to make a layout showing all the individual cells below the single label of one column (downward across all rows). (Illustrator's Variables feature doesn't even let you put multiple instances of a single variable in the document, so that the same value occurs in multiple places.)
    You're trying to build the functional equivalent of a typical "gang up" press sheet, like a 10-up layout of business cards, each showing the same kind of data (name, phone, etc.) for multiple employees, so that you don't have to do separate press runs for each employee. That's certainly a common need, and one quite appropriate to a program like Illustrator. But Illustrator's Variables feature does not do that.
    Essentially, what you are wanting to do is to replicate the basic functionality of any program which is used to print labels from data (like the typical mail merge function for address labels which are ganged up with some number of different labels on a page). What you want could be done in Illustrator via a custom JavaScript, but it would be a pretty silly exercise in reinventing the wheel. If it were me, I'd probably build the solution in FileMaker Pro (a database program), depending on the specific graphics requirements. However, you should be able to do it in InDesign, using its data merge feature.
    JET

  • Exporting Multiple Artboards of Different Formats Easily

    I have one document with multiple artboards. I need to export each artboard with different formats and ppi. Is there a way I can do this quickly and efficiently without having to export each artboard individually? Thank you in advance for your time, insight, and help.

    Thanks for the reply Wade.
    It an unusual sitatution. I have a whole document created in illustrator. I'm handing it over to a client for them to work on in-house and they've requested an inDesign file. Ideally I'd like a way of exporting my ai file into an indd file. Haven't been able to find a way of doing this at the moment.

  • Multiple Artboards CS4 versus Crop Area CS3

    If i'm getting this right,
    1. CS 4 doesn't haven the Crop Area tool anymore.
    2. Artboards are limited to 100 artboards per document depent there size.
    Question;
    Is it possibel to create an artboard from an element/object as you could with Crop Area?
         Because in this way you could save "unlimited" artboard "templates" in your document for reuse.
    Daniel Hoogendoorn
    Cito-plan

    -Multiple artboards are a step forward.-
    Hmm I'm missing here something... Why is the crop Area tool gone? maybe because multiple artboards is the one to compentsate for it?
    And well it didn't , there are several discussions about that going on. Croparea's will be converted to artboards in CS4
    >>You can't create an artboard from an object. That is indeed one limitation I'd like to see lifted. You can create one artboard and just toggle different layers if needed. I guess I don't really understand the problem<<
    The problem is i've got a citymap, dimensions lets say 1000 mm x 1000 mm and I want to make an atlas from it.
    In other words I want to take several 150 mm x 210 mm fragments of the original map and put them on seperate pages.
    In Freehand I could make reference rectangles and give them a lensfill and export object only as an eps, pdf etc.
    In CS3 I could make Crop Areas from the reference rectangles and export as pdf etc.
    In CS4 crop areas is gone and will be converted to Artboards (i read in the forum).
    I need the reference rectangles because everytime I export the litlle fragment it must be the same and on the exact same place.
    The only way to do this in CS4 is to manualy move the page and bring it in line with the rectangle......
    Anyone some other idea's? it's crucial for my workflow and I'm looking if Illustrator is capable to do this so we can switch...

  • Creating multiple-paged documents using Illustrator

    Hi all! I normally use InDesign to create many-page projects. But twice now, I've had clients request that I create the file using Illustrator. Am I missing something? Can Illustrator do this? It seems to be each page would have to be its own separate file. That seems cumbersome to me. Thanks.
    Julie

    In CS 4 & 5 you can can have multiple artboards which are page like regions of the canvas they an be printed like pages.
    In previous versions you would tile the art within a larger dimension document.
    Bot can be printed or saved to a Multipage pdf.

  • How do i creating multiple icloud accounts for one itunes account

    how do i creating multiple icloud accounts to access one itunes account?

    Perhaps you could explain a bit more what you want to do...
    iCloud accounts don't access an iTunes account.
    iTunes account is used to make purchases.

  • In Pages (5.5.1) can I create multiple Paragraph Styles within one paragraph?

    In Pages (5.5.1) can I create multiple Paragraph Styles within one paragraph. 
    I need to make a table of contents for my Mater's Thesis and want to use the automatic table of contents feature.  I want the first sentence of a paragraph to have a different paragraph setting than the rest of the paragraph.  Is this possible?
    Thanks!

    Nice of you to be doing this for your Mother's Thesis.
    There are several issues here:
    1. A Paragraph Style is what it says, the style for the paragraph
    2. You can format text within a paragraph by applying a Character Style
    3. Pages 5.5.1 lets you apply formatting to overall text for the T.O.C. but not parts of it and you can not retain that formatting as a Paragraph style
    So in answer to your question, no.
    You will need to create the T.O.C. manually and unfortunately as Pages 5.5.1 can't create bookmarks (just one of over 100 missing features) you will be unable to link the T.O.C. to the referred pages in the list.
    Peter
    Apple's marketing slogan:
    Pages 5.5.1 - Can't Do That!

  • How do I create multiple live USBs of Operating systems to boot from on one flashdrive?

    How do I create multiple live USBs of Operating systems to boot from on one flashdrive?
    I am attempting to create multiple live USBs within one flashdrive so that i can boot various operating systems without having to buy multiple USb sticks. I am using a Mac OS X Snow Leopard 10.6.8 Operating System currently. I am using the Terminal provided by the OS.
    I would like to try Debian, Kali, Precise Puppy, and Sabayon- with one space left empty for whatever Linux OS I would like to try next. I have partitioned an 8GB flashdrive into the following sections:
    name of intended OS,     space allocated for it:
    1)Debian ........................1.32 GB
    2)Kali..............................2.61GB
    3)Precise Puppy..............163.7MB
    4)Sabayon.......................1.77GB
    5)TBD..............................2.14GB
    I have figured out how to change the .iso files of the operating systems into .img files with the following commands:
    hdiutil convert -format UDRW /path/to/input.iso -o /path/to/output.img
    a .img.dmg file is created, this is corrected in the next line of code *please note: I am a a very beginner at programming, and would greatly appreciate any help. Thank you!
    mv /path/to/output/file.img{.dmg,}
    This is where I started to get confused:
    I entered diskutil list to find the location of the partitions on my flashdrive, and this is the relevant section:
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:     FDisk_partition_scheme                        *8.0 GB     disk1
       1:                 DOS_FAT_32 DEBIAN               1.3 GB     disk1s1
       2:                 DOS_FAT_32 KALI                    2.6 GB     disk1s2
       3:                 DOS_FAT_32 PRECISE            163.7 MB   disk1s3
       4:                 DOS_FAT_32 SABAYON           1.8 GB     disk1s5
       5:                 DOS_FAT_32 TBD                     2.1 GB     disk1s6
    This is the code I attempted to use and the subsequent result:
    charles-burtons-mac-mini:~ charlesburton$ sudo dd if=/Users/charlesburton/Desktop/debian-live-7.2-i386-gnome-desktop.img of=/dev/disk1s1 bs=1m
    dd: /dev/disk1s1: Resource busy
    *at this point I went to the Disk Utility GUi and unmounted only the DEBIAN partition, now back to the terminal*
    charles-burtons-mac-mini:~ charlesburton$ sudo dd if=/Users/charlesburton/Desktop/debian-live-7.2-i386-gnome-desktop.img of=/dev/disk1s1 bs=1m
    dd: /dev/disk1s1: end of device
    1259+0 records in
    1258+1 records out
    1320005632 bytes transferred in 1011.966891 secs (1304396 bytes/sec)
    Please may someone help explain why I had a return value of +1 in my records in and how I can make it work properly.

    I would like to know the answer to this as well.  I tried renaming the 3D version by adding 3D after it, but it still not a separate movie in iTunes.
    It's putting them in the same folder.

  • Create Multiple Build Controllers in Team Foundation Server 2013

    Hi all,
    I have created an environment of Team Foundation Server 2013 & also installed SharePoint Foundation 2013. Everything is working fine. I have created a build controller on the same machine on which I have installed the TFS. This build controller is used
    for building the projects of a Team Project Collection. I know that a build controller can only be used for one Team Project collection. Creating multiple build controllers on the same machine is not recommended by Microsoft.
    I have another team project collection, for this I need to create another build controller. Could you please tell me how to create another build controller on a different machine.
    Please  help me with this.
    Thanks.

    Hi Vishwajeet,
    You can do this by installing TFS in another machine (do not configure as app tier), and then configuring build services.
    Complete instructions are in my post here http://chamindac.blogspot.com/2014/02/06-setup-build-server-setup-virtual.html 
    Setting up a TFS environment step by step explained in this blog series
    http://chamindac.blogspot.com/2013/12/setup-virtual-environment-for-tfs-2013.html
    My posts explain how to setup on virtual box but it is same steps even if you setup in hyperv VM or in a standard machine.
    One more recommendation I would like to make here is, it is better if you do not configure build services in TFS App Tier. Use separate build servers. Another one is do not create too many project collections. Project collections require separate build servers,
    test controllers etc. because one is fully isolated from another collection. So carefully plan your TFS environment. I recommend you to download and read TFS Planing Guide from ALM Rangers from here
    http://vsarplanningguide.codeplex.com/releases
    Cheers!
    Chaminda

  • Split the delivery or create multiple  deliveries

    Hi team,
    Sale order stock is grater than Truck capacity.
    We need a solution to either split the delivery; or create multiple deliveries at the time of delivery creation.
    Manually we are doing calculations for pallets capacity and then doing loading still some quantity pending or some space pending
    Is there any program that can split delivery via Sales order and create Outbound delivery through pallatization..
    Any such scenarios you have please suggest.?
    Thanks in Advance
    SAP MM

    Hi,
    Normally we can split the deliveries based on the following criteria
    1. Different delivery dates for line items.
    2. Different ship to parties for line items.
    3. Different routes for line items.
    But in your above case the issue is regarding truck capacity for which the system doesn't have any information.  So you can manually create a new delivery by adjusting the existing one or if you feel the issue is going to repeat for different items in future also then you can go build a custom logic in the system to address the delivery split using a user exit.
    Thanks,

  • Using Select all to create multiple lines in a sales order

    Hello SAP experts,
    In our business practice users create multiple line sales orders with reference to contracts and use the copy paste method and then assign each line to the contract manually.
    After a few years of this practice i found a new way to create multiple lines but it doesn't quite work correctly. When you have created the first line of an order if you click on the select all button the system will ask you how many lines do you want to copy. I don't know if this is standard SAP but 3 things don't happen when we use this 1) The schedule line information is blank 2) conditions do not copy from the contract even though the contract has been referenced. 3) Since there is no schedule line information the order fails when saving and we get a update terminated message.
    I am having problems finding any documentation around this function so any help with this would be greatly appreciated.
    error when updating is
    Transaction..   VA01
    Update key...   4D358878A8B601AAE10080000A2C4982
    Generated....   28.01.2011, 13:47:23
    Completed....   28.01.2011, 13:47:23
    Error Info...   00 671: ABAP/4 processor: GETWA_NOT_ASSIGNED

    GETWA_NOT_ASSIGNED
    Many threads are there on this error message and you would come to know if you google with this text.  Check couple of threads where  the same topic was discussed
    [Re: GETWA_NOT_ASSIGNED|Re: GETWA_NOT_ASSIGNED;
    [Re: GETWA_NOT_ASSIGNED ABAP Dump|GETWA_NOT_ASSIGNED ABAP Dump;
    Also there are some 20 OSS notes on this error message and you can have a look at the following notes:-
    1)   Note 913679 - VA01: Short Dump GETWA_NOT_ASSIGNED on click of quantity.
    2)   Note 591955 - ABAP runtime error GETWA_NOT_ASSIGNED
    3)   Note 870670 - SD_SALES_DOCU_MAINTAIN_DIALOG termination with GETWA_NOT_***
    4)   Note 141314 - VA02: Dump with 'GETWA_NOT_ASSIGNED'
    thanks
    G. Lakshmipathi

  • Create multiple sales orders from single service notification?

    Is it possible to create multiple sales orders from a single notification (IW51)? 
    We currently create sales orders directly within transaction IW51 (Create Service Notification).  We kick off the sales order creation by pressing the "SALES ORD." button in the notification screen.  We're now interested in creating a 2nd Sales Order which would tie directly to the same Service Notification.  This is so that we can have the second order assigned to a different account assignment WBS (there are two different parties doing work on the service notification).
    I assume you would have to go to VA01 to create the Sales Order, but am not sure how to tie it directly to the service notification from here.  I treied to do a create with reference, but there is no ability to create with reference to a service notification.
    Do I have to create a second service notification for the 2nd Sales Order for this to work?  I want to avoid doing this if at all possible.
    I'm running SAP R/3 Enterprise
    Thanks for your help!

    Hi,
    go to vtaa- copy controls for sales document to sales document.
    select your combination of order and quotation go to item level. There select value 0(zero) in field positive/negative negative.
    No need to change update document flow.
    After setting zero in copy control that be told on above. create order with respective to the quotation.
    After saving the order.
    go to document flow to see the status in between quotation and order.
    If you placed setting right, then u certainly observe for quotation status will be open. so you can create no. of sales order with respect to that quotation..
    Have a good day..

  • How to create multiple tabs of report in 1 crystal report file

    Hi,
    Is there any feature in Crystal report 2008 on creating multiple tabs of report similar to Web-I?
    If there is, could you give me help on this.
    Thank you in advance.
    Rose

    Hi Rose,
    I think we cant achive the same functionality in Crystal Report designer.
    Regards,
    Shweta

Maybe you are looking for