DIAdem Help

Object: Element <Data>

  • Updated2024-09-12
  • 1 minute(s) read

Object: Element <Data>

The Element object provides a single element in the script interface for internal data. Depending on whether an element of the internal data is a data set (Root), a group (ChannelGroup), or a channel (Channel), the Element object has additional properties. Use the IsKindOf method to determine the type of an element. Refer to Working with the Elements Collection and the Element Object for general information on working with the elements.

The Element object corresponds to one of the following objects:

Root (IDiademRoot)Data set
ChannelGroup (IDiademChannelGroup)Channel group
Channel (IDiademChannel)Channel

The following example displays the name for each element that is selected in the Data Portal:

VBScriptPython

 

Dim oMySelectedElement
For Each oMySelectedElement in Portal.Structure.Selection
  If oMySelectedElement.IsKindOf(eDataRoot) Then
    Call MsgBoxDisp ("Root: " & oMySelectedElement.Name)
  ElseIf oMySelectedElement.IsKindOf(eDataChannelGroup) Then
    Call MsgBoxDisp ("ChannelGroup: " & oMySelectedElement.Name)
  ElseIf oMySelectedElement.IsKindOf(eDataChannel) Then 
    Call MsgBoxDisp ("Channel: " & oMySelectedElement.Name)
  End If
Next

Properties

Name | Properties

Methods

IsKindOf

Log in to get a better experience