Collection: ElementList <Data>
- Updated2024-09-12
- 1 minute(s) read
(Collections | Data) > Collection: ElementList <Data>
Collection: ElementList <Data>
Collection of elements in the script interface for internal data. Use the ElementList collection to access channels, channel groups, or the root. You can add elements to the collection or remove elements from the collection. The data in the Data Portal remains unchanged. Every element of the collection ElementList is an Element.
![]() | Note The commands DataFileLoad, DataFileLoadRed, DataFileLoadSel, and StorageImport and the methods Navigator.LoadData and Navigator.LoadProperty return an ElementList object. |
The following example searches for all [1]/Speed and [1]/RPM channels, combines the two channel lists, and outputs the amount of channels found:
VBScript | Python |
Dim oChnList, oChn1, oChn2 Set oChn1 = Data.GetChannel("[1]/Speed") Set oChn2 = Data.GetChannel("[1]/RPM") Set oChnList = Data.CreateElementList Call oChnList.Add(oChn1) Call oChnList.Add(oChn2) Call MsgBox(oChnList.Count)
Properties
Returned From
Data.CreateElementList | Data.GetChannelGroups | Data.GetChannels | DropInformation.DiademElements