1 Reply Latest reply on Jul 21, 2012 11:36 PM by -hans-

    Check whether an image has already been placed on a page?

    caseyctg Level 1

      So I am placing a file using:


      var ActualForecastFileProd = GraphFolder+"/"+"ActualForecast.eps";                                           var ActualForecastProd = newDoc.pages.item(i).place(File(ActualForecastFileProd), [xVal, 3.35], layergraph, false, true)[0];


      WHat I want to do is check whether this item exists, if so I don't want to place another one. This place command is in a loop and if i place it at all, I only need to place it one time. So when it loops back around a second time, I don't want to place it again and have multiple objects.


      Does anyone know how to check whether a specific element exists?