DIAdem Help

Property: Index for Segment

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

Property: Index for Segment

Returns the index of a segment in a 2D axis system in DIAdem VIEW.

Object.Index
ObjectSegment
Object with this property
Object.IndexLongInteger with read access

The following example adds a segment to a 2D axis system and outputs a message which displays the index of this segment. The DisplayObj must be a CurveChart2D type.

VBScriptPython

 

Dim oNewSegment
Set oNewSegment = View.ActiveSheet.ActiveArea.DisplayObj.Segments.Add("[1]/[1]","[1]/[3]","X")
Call MsgBoxDisp("Index of NewSegment: " & oNewSegment.Index)