AVEVA Community
AVEVA Community
  • Site
  • User
  • Site
  • Search
  • User
Modules
  • AVEVA World
  • PDMS/E3D Forum
  • Modules
  • Cancel
Modules
Draft Module Layer Toolbar
  • Forums
  • Resources
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Replies 7 replies
  • Subscribers 5 subscribers
  • Views 29 views
  • Users 0 members are here
Options
  • Share
  • More
  • Cancel
Related

Layer Toolbar

Barry Bertram
Barry Bertram over 12 years ago
 
  • Sign in to reply
  • Cancel
  • Barry Bertram
    Barry Bertram over 12 years ago
     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Corrado Galluzzi
    Corrado Galluzzi over 12 years ago
    It was a known issue. It should have been solved with a recent fix.
    Which PDMS version are you using?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Corrado Galluzzi
    Corrado Galluzzi over 12 years ago
    Sorry....I was wrong.....It works OK in PDMS 12.1.SP2
    In 12.0.SP6 you have to keep the Layer Toolbar active.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Barry Bertram
    Barry Bertram over 12 years ago
    PDMS12.0.SP6.38

    Which SP has the fix?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Barry Bertram
    Barry Bertram over 12 years ago
    Thanks corrado,

    We have just got all our systems in line. We will not be upgrading to 12.1 for a while yet. Its likely to cause some confusion...

    Do you know what the problem is?

    in PMLLIB/draft/forms/appdramain.pmlfrm line 128

       option .notesViews  tooltip 'Current Note or View ' call |!this.layerControl.selectNoteView()|                          width 6

    has been added from 11.6 and a new object.

    PMLLIB/draft/objects/APPDRALAYERCTRL.pmlobj

    It looks like it is setting a global variable.

    !!cdrGenApp line 880 to 937

    ?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Barry Bertram
    Barry Bertram over 12 years ago
    Its ok Corrado. I fixed it for us.

      In our User interface we use a.

      track 'PADDCE' call '!this.load()'

    so I added.

    member .layerControl    is APPDRALAYERCTRL


    to our form definition and then

      !x = !!ce
      !this.layerControl.selectElement($!x)

    in the .load method.

    we can then run without the 'layers' tool bar active.

    Works here anyway....
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Barry Bertram
    Barry Bertram over 12 years ago
    You need the following in the .load method. The object crashes if you don't select a VIEW NOTE LAYE VNOT VSEC in the current sheet or you select any item from a shee which is not active.

      !valid = 'VIEW LAYE NOTE SLAB GLAB LDIM DPOI DPPT DPBA RDIM APPT ADIR PDIM TEXP OUTL VRTX STRA RECT SYMB VNOTE'
      !check = !valid.match(!type).eq(0)
      if(!check) then
      else
         !sheetName = !!appDraMain.sheet.selection('RTEXT')
         !owner          = shee
         !ownern        = !owner.fullname

         -- Check to see if selected items exist in currently selected/loaded sheet.
         if(!sheetname eq !ownern) then
            !x = !!ce
            !this.layerControl.selectElement($!x)
         else
         endif
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel