Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

CHOOSE in C#

  • Last UpdatedNov 07, 2024
  • 1 minute read

The generic PML window !!chooseComponent can be used with the new selection functionality and the new User control can also be embedded with a PML window akin to other PML NET controls. It also has the ability to create and modify components using the UI.

Note:
To query any other PML-accessible methods using !!chooseComponent.methods().

When !!chooseComponent for is shown for the first time, the grid won't show anything. Set up the window's select object with criteria. The following code displays available components matching the selection in the grid:

show !!chooseComponent

!!chooseComponent.select.withPurpose(‘HVAC’).with(‘TYPE’, ‘STRT’).with(‘PSHA’).with(‘PWID’, ‘300mm’)

--Headings must correspond to the question you are searchings for in the SELE hierarchy

!!chooseComponent.setHeadings(‘PHEI’)

!!chooseComponent.loadselection()

Related Links
TitleResults for “How to create a CRG?”Also Available in