hwIDataFile GetChannelMetaDataType

Gets the type of an item of meta data associated with a file channel.

Syntax

hwIDataFile_handle GetChannelMetaDataType datatype, request, component, varname

Application

HyperWorks Tcl Query

Description

This command retrieves the type of an item of metadata 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 varname parameter specifies which item of data to retrieve.

The type will be one of the following: Integer, Float, or String.

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