pltIVector AddDataAttribute

Attaches a data attribute to the metadata of the datasource (vector).

Syntax

pltIVector_handle AddDataAttributesvarname, (value)

Application

Tcl Modify

Description

This command attaches a data attribute to the datasource (vector).

Inputs

varname
Name of the data attribute.
value (Optional)
Specifies the value of the data attribute.

Example

#Precondition : A curve must be available on the plot client window.
hwi GetActiveClientHandle cl;#Must be a plot client.
cl GetCurveHandle crv 1;#Get the handle of the curve at index 1.
crv GetVectorHandle yvec y;#Possible options are x or y or u or v
yvec AddDataAttributes HWTest "1"
(will attach a data attribute named "HWTest" and a value of "1" to the vector)

Errors

None.

Keywords

Tcl

Data Attribute

MetaData

Vector

Query