2 Replies Latest reply: Mar 27, 2012 10:34 PM by Sashikala Balasubramanian RSS

    working with artboards

    Sashikala Balasubramanian Community Member

      I need to place one image in each artboard.

       

      illus_app.ActiveDocument.Artboards.SetActiveArtboardIndex(1)

      thisPlacedItem = illus_app.ActiveDocument.PlacedItems().Add

      thisPlacedItem.File = "D:\test1.eps"

      thisPlacedItem.Top = myDocument.height / 2 + thisPlacedItem.Height / 2

      thisPlacedItem.Left = myDocument.width / 2 - thisPlacedItem.Width / 2

       

       

      illus_app.ActiveDocument.Artboards.SetActiveArtboardIndex(2)

      thisPlacedItem = illus_app.ActiveDocument.PlacedItems().Add

      thisPlacedItem.Selected = True

      thisPlacedItem.File = "D:\test2.eps"

       

       

      How to calculate the top and left coordinates to place the image in the centre of artboard 2 and subsequent artboards.

       

      regards,

      Sashi