1 Reply Latest reply on Jun 9, 2011 1:14 AM by Peoleo_JM

    Accessing Layers And Layers with Layer style using VB.

    Peoleo_JM

      Hello everyone,

       

      I need to modify the text content of some ArtLayer using a VBscript.

       

      screen shot of the layers i use, one 'basic' ArtLayer and one with Layer Style.

      ScreenShot007.jpg

       

      I wrote something like that and it works :

       

      gabarit.LayerSets("tous les textes éditables").ArtLayers("niveau x 3P").TextItem.contents = "my own text"

       

      BUT

      when i try this on a ArtLayer with layer style i have a script error telling me that this element doesn't exists :

       

      gabarit.LayerSets("tous les textes éditables").ArtLayers("titre de la carte").TextItem.contents = "my own text"

       

      What the differences between those layers ? How can i modify the text of the second one ?

       

      Thanks for any Help !