DIAdem Help

Method: Item for Harmonics

  • Updated2024-09-12
  • 2 minute(s) read

Method: Item for Harmonics

Returns the cursor line of an harmonic cursor specified by the index, in a 2D axis system in DIAdem VIEW.

Set oHarmonicItem = Object.Item(Index)
ObjectHarmonics
Object with this method
IndexLongInteger
Specifies the index of a specific cursor line.
oHarmonicItemHarmonicItem
Returned object

The following example displays, in a message, the intersection point of the first additional cursor line of the harmonic cursor with the curve, in a 2D axis system. The DisplayObj must be a CurveChart2D type.

VBScriptPython

 

Call MsgBoxDisp("X coordinate of subcursor1: " & View.ActiveSheet.ActiveArea.DisplayObj.SubCursor.Harmonics.Item(1).X & vbCrLf &_
                "Y coordinate of subcursor2: " & View.ActiveSheet.ActiveArea.DisplayObj.SubCursor.Harmonics.Item(1).Y)