DIAdem Help

Collection: Segments

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

Collection: Segments

The Segments object provides a collection of the Segments in a channel table in DIAdem VIEW. Use the Segments collection to delete segment items or to add new segments.

The following example creates a 2D axis system with colored background segments:

VBScriptPython

 

Dim oMySheet, oMyChart, oMySegment
Call Data.Root.Clear()
Call DataFileLoad(ProgramDrv & "Examples/Data/Segment.tdm")
Call View.Sheets.RemoveAll()
Call View.NewLayout()
Set oMySheet = View.ActiveSheet
oMySheet.ActiveArea.DisplayObjType = "CurveChart2D"
Set oMyChart = oMySheet.ActiveArea.DisplayObj
Call oMyChart.Curves2D.Add("[1]/[1]","[1]/[2]")
Set oMySegment = oMyChart.Segments.Add("[1]/[3]", "[1]/[4]", "X") 
oMySegment.Color = "grey"
oMySegment.Transparency = 50

Properties

Count

Methods

Add | Item | Remove | RemoveAll

Returned From

CurveChart2D.Segments