DIAdem Help

Property: Count for Harmonics

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

Property: Count for Harmonics

Returns the number of cursor lines of the harmonic cursor in a 2D axis system in DIAdem VIEW.

Object.Count
ObjectHarmonics
Object with this property
Object.CountLongInteger with read and write access

The following example activates the harmonic cursor in a 2D axis system and outputs a message which displays the number of cursor lines:

VBScriptPython

 

Dim oMyObj: Set oMyObj = View.ActiveSheet.ActiveArea
If oMyObj.DisplayObjType = "CurveChart2D" Then
  oMyObj.DisplayObj.SubCursorType = eVIEWSubCursorTypeHarmonic
  Call MsgBoxDisp("Additional Cursor Lines: " & oMyObj.DisplayObj.SubCursor.Harmonics.Count)
Else
  Call MsgBoxDisp("Area type: " & oMyObj.DisplayObjType)
End If