hwIDataFile GetChannelMetaDataList

Gets a list of meta data items associated with a file channel.

Syntax

hwIDataFile_handle GetChannelMetaDataListdatatype, request, component

Application

HyperWorks Tcl Query

Description

This command returns a list of the metadata items associated with a specific channel of a data file. The channel is identified by the datatype, request, and component parameters. These strings are specific to the particular file.

The returned list will contain the varnames (unique identifier strings) of the items (if any).

Example

hwi GetSessionHandle sess1
sess1 GetDataFileHandle datafile "[sess1 GetSystemVariable ALTAIR_HOME]/demos/mv_hv_hg/plotting/adams/indy.req"
set reqlist [datafile GetRequestList Displacement]
set complist [datafile GetComponentList Displacement]
set metadatalist [datafile GetChannelMetaDataList Displacement [lindex $reqlist 0] [lindex $complist 0]]
datafile GetChannelMetaDataValue Displacement [lindex $reqlist 0] [lindex $complist 0] [lindex $metadatalist 0]
datafile GetChannelMetaDataValue Displacement [lindex $reqlist 0] [lindex $complist 0] [lindex $metadatalist 1]
datafile GetChannelMetaDataLabel Displacement [lindex $reqlist 0] [lindex $complist 0] [lindex $metadatalist 0]
datafile GetChannelMetaDataType Displacement [lindex $reqlist 0] [lindex $complist 0] [lindex $metadatalist 0] 

Error

If the item of metadata is not present in the file, an empty string will be returned.

Keywords

HyperWorks

XY plot

Tcl

import

query