AVEVA Community
AVEVA Community
  • Site
  • User
  • Site
  • Search
  • User
Modules
  • AVEVA World
  • PDMS/E3D Forum
  • Modules
  • Cancel
Modules
Draw draw label for panel
  • Forums
  • Resources
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Replies 8 replies
  • Subscribers 6 subscribers
  • Views 101 views
  • Users 0 members are here
Options
  • Share
  • More
  • Cancel
Related

draw label for panel

jason stojakovich
jason stojakovich over 4 years ago
 
  • Sign in to reply
  • Cancel
  • jason stojakovich
    jason stojakovich over 4 years ago
    I am trying to create a label for a panel that reads the geometric coordinate of the panel. Using #POSU only gives me the U position of the panel based on its justification used when creating it (ie bott or top) I need the label to read the elevation of the panel and am having no luck. (ie t/panel 1  b/panel-0) any help much appreciated.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Corrado Galluzzi
    Corrado Galluzzi over 4 years ago
    Try with #PML(MAX(ATTRIB UP OF DDNAME, ATTRIB UP OF DDNAME + ATTRIB LOHE OF DDNAME))

    ;-)
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jason stojakovich
    jason stojakovich over 4 years ago
    thank you for the reply, sadly it still reads the same elevation based on the U of the panel and not the actual elevation. in 1 case the middle of the panel in elevation view did not return any elevation and the script stayed on the label.  I feel like I am just missing something that should be easily set?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Corrado Galluzzi
    Corrado Galluzzi over 4 years ago
    Sorry....I realized I have not considered "middle" justification and panel orientation.
    You surely need a more complex PML code for this....
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Corrado Galluzzi
    Corrado Galluzzi over 4 years ago
    Here is an updated syntax.
    My previous one was not correct.
    I am giving a training course and a customer asked me about this.....

    #PML(IFTRUE(SJUST OF DDNAME EQ 'BOTT', ATTRIB UP OF DDNAME + ATTRIB LOHE OF DDNAME, ATTRIB UP OF DDNAME))

    It still doesn't cope with "centre" justification.
    I think that would need nested IFTRUE function.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Corrado Galluzzi
    Corrado Galluzzi over 4 years ago
    Here is the last version that deals with SJUST CENT too....

    #PML(IFTRUE(SJUST OF DDNAME EQ 'BOTT', ATTRIB UP OF DDNAME + ATTRIB LOHE OF DDNAME, IFTRUE(SJUST OF DDNAME EQ 'CENT', ATTRIB UP OF DDNAME + (0.5 * ATTRIB LOHE OF DDNAME), ATTRIB UP OF DDNAME)))

    Please let me know if you think it doesn't work ok
    :-)
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Rembo
    Rembo over 3 years ago
    hi corrado, could you help
    how to eliminate mm from > #PML(ATTRIB LOHE OF DDNAME)

    Thanks
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Rembo
    Rembo over 3 years ago
    [QUOTE=Rembo7;119827]hi corrado, could you help
    how to eliminate mm from > #PML(ATTRIB LOHE OF DDNAME)

    Thanks

    ok got it .. just ignore this.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel