DIAdem Help

Method: Pin for Structure

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

Method: Pin for Structure

Pins or unpins an element in the Data Portal. You can pin only channel groups and channels.

Object.Pin(Element, Pin)
ObjectStructure
Object with this method
ElementElement <Data>
Specifies the element to be pinned. Elements can be channel groups and channels. When you pin a group, DIAdem pins all channels of this group.
PinBoolean
Specifies whether DIAdem pins the specified data element (TRUE) or unpins the element (FALSE).

The following example checks whether the time channel in the first channel group is pinned. If the channel is not pinned, the example pins the channel:

VBScriptPython

 

Dim oMyElement
Set oMyElement = Data.Root.ChannelGroups(1).Channels("time")
If Not Portal.Structure.IsElementPinned(oMyElement) Then
  Call Portal.Structure.Pin(oMyElement,TRUE)
End If

Log in to get a better experience