DIAdem Help

Object: SidebandCursor

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

Object: SidebandCursor

The SidebandCursor object provides access to a Sideband cursor in a 2D axis system in DIAdem VIEW. Use the SidebandCursor object to access the properties of the additional cursor lines.

The following example displays the number of and the distance of the cursor lines of the sideband cursor in a 2D axis system:

VBScriptPython

 

Dim oMySheet, oMyChart, oMyCurve, oMyObj, oMySubCursor
Call View.NewLayout()
Set oMySheet = View.ActiveSheet
oMySheet.ActiveArea.DisplayObjType = "CurveChart2D"
Set oMyChart = View.ActiveSheet.ActiveArea.DisplayObj
Set oMyCurve = oMyChart.Curves2D.Add("[1]/[1]","[1]/[2]")
Set oMyObj = oMySheet.ActiveArea
oMyObj.DisplayObj.SubCursorType = eVIEWSubCursorTypeSideband
Set oMySubCursor = oMySheet.ActiveArea.DisplayObj.SubCursor.Sidebands 
Call MsgBoxDisp("Additional Cursor Lines: " & oMySubCursor.Count & vbCrLf & "Cursor Line Interval: " & oMySubCursor.Interval)

Properties

Sidebands

Returned From

CurveChart2D.SubCursor