HyperWorks Desktop

*Set()

Specifies the value of a curve macro object.

*Set()

Specifies the value of a curve macro object.

Previous topic Next topic No expanding text in this topic  

*Set()

Specifies the value of a curve macro object.

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Syntax

*Set(X, value)

*Set(Y, value)

*Set(LABEL, value)

*Set(NOTE_POS, x, y)

*Set(NOTE_ATTACHMENT, "Window"|"View"|"Existing Curve"|"Coordinate"|
                     "Curve Created by this Macro")

*Set(NOTE_MACRO_CURVE, point)

*Set(NOTE_CURVE, curve, point)

*Set(NOTE_POINT, x, y)

Arguments

Name

Description

 

X

Value

Sets the X values of the curve.

The X value of the curve

 

Y

Value

Sets the Y values of the curve.

The Y value of the curve

 

LABEL

Value

Sets the label of the curve.

The label of the curve.

 

NOTE_POS

X

Y

Sets the position of the note.

The X position of the note

The Y position of the note

 

NOTE_ATTACHMENT

"Window"|"View"|
"Existing Curve"|
"Coordinate"|
"Curve Created by this Macro"

Sets the note attachment.

The entity to which the note is attached.

 

NOTE_MACRO_CURVE

Point

Sets a note attached to the curve created by a macro.

The point on the curve to which the note is attached.

 

NOTE_CURVE

Curve

Point

Sets a note attached to an existing curve.

The curve to which the note is attached.

The point on the curve to which the note is attached.

 

NOTE_POINT

X

Y

Sets a note attached to a point.

The X coordinate of the point.

The Y coordinate of the point.

Example

*BeginPlotMacros()

{templex_off}

  *DefinePlotMacro(macro_batch, curve, low, high, times )

     *Label( "batch general")

     *Parameter(curve, "Curve (time = sec)", CURVE)

     *Parameter(low, "Low cutoff", SCALAR)

     *Parameter(high, "High cutoff", SCALAR)

     *Parameter(times, "Time conv.", SCALAR, 1.0)

    *Set(X, "curve.x")

     *Set(Y, "batch(times*curve.x,curve.y,low,high)")

     *Set(LABEL, curve.label + "_" + low + "_" + high)

     *Set(NOTE_POS, x, y)

     *Set(NOTE_ATTACHMENT, "Coordinate")

     *Set(NOTE_POINT, x, y)                      

  *EndDefine()

*EndPlotMacros()

Application

HyperGraph.

Context

*BeginPlotMacros()

*DefinePlotMacro()

Comments

For NOTE_POS or NOTE_POINT, values for both X and Y are required.

For NOTE_CURVE, both a curve and a point are required.

For NOTE_ATTACHMENT, use one of the following arguments: "Window", "View", "Existing Curve", "Coordinate", or "Curve Created by this Macro" (must be in double quotes).

NOTE_CURVE is used only if the note is attached to an existing curve.

NOTE_POINT is used only if the note is attached to a coordinate.

NOTE_MACRO_CURVE is used only if the note is attached to a curve created by the macro.

See also

 

*BeginText()

*CreateCurve()

*CreateNote()

*DefinePlotMacro()

*Label() - axis and plot macro

*Parameter() - plot macro

List of Session Statements