AVEVA Community
AVEVA Community
  • Site
  • User
  • Site
  • Search
  • User
PDMS/E3D Forum
  • AVEVA World
PDMS/E3D Forum
Macros & Tools Toolbar customization
  • Forums
  • Resources
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Replies 4 replies
  • Subscribers 17 subscribers
  • Views 510 views
  • Users 0 members are here
Options
  • Share
  • More
  • Cancel
Related

Toolbar customization

bahman alavi
bahman alavi over 4 years ago
 
  • Sign in to reply
  • Cancel

Top Replies

  • Léo SALVADOR
    Léo SALVADOR over 3 years ago +1
    Hi, The solution is to attach a Command to your Control, and manage the behaviors of the Control through the Command itself. Commands can be defined using .Net ( https://docs.aveva.com/bundle/engineering…
  • bahman alavi
    bahman alavi over 4 years ago
    Hi
    I added a new command bar in Design module toolbar. I placed a textbox and I wanted to when I type a number or something else in this textbox, on pressing enter this value print in command window. I could not found the way to catch this text from this added textbox. Is there anyway to do this?
    Thanks
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Aymen HASSOUN
    Aymen HASSOUN over 3 years ago in reply to bahman alavi

    Hello bahman alavi 

    did you find a solution to your question ? I am facing the same need.

    Thanks in advance.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Léo SALVADOR
    Léo SALVADOR over 3 years ago

    Hi,

    The solution is to attach a Command to your Control, and manage the behaviors of the Control through the Command itself.

    Commands can be defined using .Net ( https://docs.aveva.com/bundle/engineering-ue/page/911573.html ) or using PML ( https://docs.aveva.com/bundle/engineering-ue/page/1027335.html )

    If you want to use PML, here are the steps:

    1) Create your Command within a .pmlcmd file in your PMLLIB (you have examples of Aveva Commands in %AVEVA_DESIGN_INSTALLED_DIR%\PMLLIB\common\commands)

    2) Register your Command ( https://docs.aveva.com/bundle/engineering-ue/page/1027426.html ). You can use the !!loadUserCommands() function to register your command at startup, as specified in the previous link.

    3) Attach your Command to your Control using Customize menu.

    Then ,within your Command, you can for example get the value of your Textbox using !this.value(), or use the .execute() method to retrieve the event handler of the textbox validation.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Aslam Vohra
    Aslam Vohra over 2 years ago in reply to Léo SALVADOR

    Nice piece of information. Thank you

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel