6 Replies Latest reply on Jun 2, 2012 5:01 PM by CarlosCanto

    scripting: how to mimic the F8 command

    dsdsdsdsd Level 1

      hello;

       

      I have successfully written a script that loops through all layers, and then the pageitems within, selects each pageitem, and creates a symbol out of it.

       

      PROBLEM: although it creates a symbol from the the_doc.selection[0], the selection is NOT replaced with the new symbol.

       

      As an example: when you select an item on the canvas, and press F8, the selection itself is converted to a symbol (actually an instance of the symbol), thus preserving the new symbol's x,y position.

       

      any thoughts?

       

       

      thanks,

      Shannon