DIAdem Help

Method: AddCascade for CascadeCurves

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

Method: AddCascade for CascadeCurves

Adds an object to the CascadeCurve collection and returns a WaterfallCurve object in the DIAdem VIEW script interface. Use the DataStructure property to specify the structure of the waterfall curve data.

Set oWaterfallCurve = Object.AddCascade(XNameOrNo, TrackNameOrNo, YNameOrNo)
ObjectCascadeCurves
Object with this method
XNameOrNoVariant
Specifies the name or the number of the x-channel to be displayed.
TrackNameOrNoVariant
Specifies the name or the number of the track channel to be displayed.
YNameOrNoVariant
Specifies the name or the number of the y-channel to be displayed.
oWaterfallCurveWaterfallCurve
Returned object

The following example creates a cascade display and adds a waterfall curve:

VBScriptPython

 

Call Data.Root.Clear()
Call DataFileLoad(ProgramDrv & "Examples\Data\cascade.tdm","TDM","")
Dim oMyDisplayObj
Call View.NewLayout
View.Sheets(1).Areas(1).DisplayObjType = "Cascade" 
Set oMyDisplayObj = View.Sheets(1).Areas(1).DisplayObj 
Set oMyCascadeCurve = oMyDisplayObj.CurvesCascade.AddCascade("[2]/[1]","[2]/[2]","[2]/[3]")