Method: Pin for Structure
- Updated2024-09-12
- 1 minute(s) read
Data Portal > Methods > Method: Pin for Structure
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)
Object | Structure Object with this method |
Element | Element <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. |
Pin | Boolean 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:
VBScript | Python |
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
See Also
Procedures
Creating a Template for Custom Properties | Deleting Channels from the Data Portal | Expanding Registered Channels | Generating Data Set, Group, and Channel Custom Properties in the Data Portal | Generating New Channels in the Data Portal | Generating New Groups in the Data Portal | Saving a Data Store | Specifying the Default Group in the Data Portal