1 Reply Latest reply on May 28, 2012 2:40 AM by Marcos Suárez

    To place a object from library in a document...

    Marcos Suárez Level 1

      I need a script to place a object from library in my document when an xml element...

       

      Something like this ..

       

      var inddRooElement = myDoc.xmlElements.item(0);

      var xPathElements = inddRooElement.evaluateXPathExpression("//h2");

      var elementCount = xPathElements.length;

      for(var eId=0; eId<elementCount; eId++){

          var thisXpathElement = xPathElements[eId];

          thisXpathElement.insert.....  OBJECT FOR LIBRARY...............................     ;

          }

       

       

      Thanks in advance...