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

Find Equipment in VIEW

Jayson Montajes
Jayson Montajes over 10 years ago
 
  • Sign in to reply
  • Cancel
  • Admin
    Admin over 10 years ago
    I maybe reading this thread wrong but 'rrul' does the same thing? just amend 'criteria' to suit your needs?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Jayson Montajes
    Jayson Montajes over 10 years ago
    Hi All,

    I would like to ask if PML.Net has a command like q find /element in viewname?

    My purpose is I want to filter all equipment is it is visible in the view,
    then if it is visible in view I will put a SLAB on it..

    Please help me. I badly need it.

    All response will be appreciated.

    Thanks,

    JaysonX96
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Bobby Nguyen
    Bobby Nguyen over 10 years ago
    You can try this
    !ori = ce!Tmrf = /YOUR-LABEL
    !v = view
    !view = !v.fullname


           var !vscan vscan for all (EQUI) FOR VIEW
        Do !y indices !vscan
           $!vscan[$!y]
        SWITCH
    $!view
    new laye $!view/EQUI
    handle any
        skip
    endhandle
        new slab DDNA $!vscan[$!y] Tmrf $!Tmrf xypos 10 10
    Enddo
       
        Refresh
    $!ori


    $.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Jayson Montajes
    Jayson Montajes over 10 years ago
    bobby,

    Thanks for your response. I appreciate your PML code.

    But, is there any c# syntax for your solution? I am using c# now.


    Thanks,

    JaysonX96
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Jayson Montajes
    Jayson Montajes over 10 years ago
    RRUL is just for the representation. what I need is the C#.net command to collect All Visible equipment in the view.

    Hope anyone here know the solution thanks a lot
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel