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

Calculated value in Btext

Aaron Tan
Aaron Tan over 10 years ago
 
  • Sign in to reply
  • Cancel
  • Aaron Tan
    Aaron Tan over 10 years ago
     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Rolf Suessbrich
    Rolf Suessbrich over 10 years ago
    Hmm,

    intelligent text in DRAFT just allows to call out values of attributes but I think you can't define any calculations with those.

    If you want to avoid the necessity to maintain the required sum in Design with a macro a circumvention might be:

    Allocate an UDA of type NUMBER/REAL to a Draft item like GLAB or any suitable master element e.g. a View, if you have one table per view only.

    Write a macro which performs in Draft the required calculations and assigns the result to this UDA.

    If you want to avoid that users have to start this macro on request smuggle in as payload a call to this macro into another macro e.g. for starting a PLOT, UPDATE a VIEW/SHEET or whereever .

    Good success!
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Aaron Tan
    Aaron Tan over 10 years ago
    thanks mate
    i was thinking i would have to do that. btw when you say

    a call to this macro in another macro

    is there a way to not edit any of the Aveva pmllib files etc? is there a way to write extension methods without modifying the actual macro e.plot
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Rolf Suessbrich
    Rolf Suessbrich over 10 years ago
    No. No measn available for that.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel