AVEVA Community
AVEVA Community
  • Site
  • User
  • Site
  • Search
  • User
PDMS/E3D Forum
  • AVEVA World
PDMS/E3D Forum
PDMS 12 q winuser?
  • Forums
  • Resources
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Replies 7 replies
  • Subscribers 2 subscribers
  • Views 40 views
  • Users 0 members are here
Options
  • Share
  • More
  • Cancel
Related

q winuser?

KC
KC over 11 years ago
 
  • Sign in to reply
  • Cancel
  • KC
    KC over 11 years ago
    Hi all.

    I would like to retrieve the username on the person who is logged in to Windows. The same name found in usermod. How do I get thet info into my own variabel?

    Thanks
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • me_hungry
    me_hungry over 11 years ago
    Just query
    'q login'
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Admin
    Admin over 11 years ago
    VAR !winUser EVAR USERNAME
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Barry Bertram
    Barry Bertram over 11 years ago
    [QUOTE=me_hungry;82254]Just query
    'q login'

    Think he wants to use the variable:

    !project = current project
    !username = !project.currentsession().name
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • me_hungry
    me_hungry over 11 years ago
    Or
    var !username login
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • KC
    KC over 11 years ago
    Thanks all.

    This was excately what I was looking for.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Aduard Romanov
    Aduard Romanov over 3 years ago
    How get a description of user in draft?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel