AVEVA Community
AVEVA Community
  • Site
  • User
  • Site
  • Search
  • User
PDMS/E3D Forum
  • AVEVA World
PDMS/E3D Forum
Beginners expression in UDA???
  • Forums
  • Resources
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Replies 16 replies
  • Subscribers 2 subscribers
  • Views 183 views
  • Users 0 members are here
Options
  • Share
  • More
  • Cancel
Related

expression in UDA???

timothy
timothy over 13 years ago
 
  • Sign in to reply
  • Cancel

Top Replies

  • Mehmet Wagner
    Mehmet Wagner over 13 years ago +2
    set the datatype of the UDA to reference
  • timothy
    timothy over 13 years ago
    I asked this in another post, but it probably belongs in its own..so..


    How can I put a default expression into a uda for example...I want link one UDA to another....
    Example expressiong I would like to have: (:MTONUM OF SPREF)

    The above expression works in the command line, but I can not enter as a default field in lexican, I get an error...
    TYPE MISMATCH: real expression expected
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Venkata Rao Peta
    Venkata Rao Peta over 13 years ago
    the MTONUM uda has to exist with spco otherwise it won't work.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Corrado Galluzzi
    Corrado Galluzzi over 13 years ago
    Have you tried with:

    DFLT ':MTONUM OF SPREF'
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • timothy
    timothy over 13 years ago
    this works when i type in the command line in design but it want set in lexcon as a default
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • timothy
    timothy over 13 years ago
    That didn't work. The first expression somewhat works, I knoticed the value will set if I type in the GUI and not the command line in Lexcon, however the when I get to design to look at the attributes the valve shown is the actually expression...
    (:MTONUM OF SPREF)
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • timothy
    timothy over 13 years ago
    [QUOTE=eben;62013]That didn't work. The first expression somewhat works, I knoticed the value will set if I type in the GUI and not the command line in Lexcon, however the when I get to design to look at the attributes the valve shown is the actually expression...
    (:MTONUM OF SPREF)

    Sorry hit post before I got finished typing...

    Anyway I then q the attribute in this case Q :MTONUMD and it returns....
    :MTONUMD (:MTONUM OF SPREF)

    Then when I click on it to re-enter the same expression I get the value I was looking for and Q :MTONUMD now give me ....

    :MTONUMD T1001

    Which I what I want.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • timothy
    timothy over 13 years ago
    I hate it when I see type-o's and can't fix them cause there no edit post button.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Corrado Galluzzi
    Corrado Galluzzi over 13 years ago
    eben, could you please explain what is your final aim?
    Maybe there is another method to reach what you need.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • john pitchers
    john pitchers over 13 years ago
    Maybe you need a different UTYPE

    If set to REXT then I think whatever is between the '..' will be printed verbatum.

    I don't know but possibly one of the other UTYPES will expand this.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • timothy
    timothy over 13 years ago
    THE Utype is set to Text, and is the only type that even has a default value, other then "Word"
    I'm starting to think I'm just asking the impossible. lol
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>