DIAdem Help

Method: Item for CascadeCurves

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

Method: Item for CascadeCurves

Returns the CascadeCurveBase object associated with a specific name or index in DIAdem VIEW.

Set oCascadeCurveBase = Object.Item(NameOrIndex)
ObjectCascadeCurves
Object with this method
NameOrIndexVariant
Specifies the name or the index of the specific order line.
oCascadeCurveBaseCascadeCurveBase
Returned object
Note  You can always omit the Item method because it is the standard element of the collection.

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

VBScriptPython

 

Call Data.Root.Clear()
Call DataFileLoad(ProgramDrv & "Examples\Data\cascade.tdm","TDM","")
Dim oMyDisplayObj, oMyCascadeCurve, oMyLineCurve
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]")
Set oMyLineCurve = oMyDisplayObj.CurvesCascade.AddLine("[4]/[156]","[4]/[157]")
oMyDisplayObj.CurvesCascade.Item(2).Color = "blue"