Method: Item for Segments
- Updated2024-09-12
- 2 minute(s) read
DIAdem VIEW > Methods > Method: Item for Segments
Method: Item for Segments
Returns the Segment object associated with a specific name or index in DIAdem VIEW.
Set oSegment = Object.Item(NameOrIndex)
| Object | Segments Object with this method |
| NameOrIndex | Variant Specifies the name or the index of the specified segment. |
| oSegment | Segment Returned object |
| Note You can always omit the Item method because it is the standard element of the collection. |
The following example displays a message with the name of the x-channel of the first segment. The second line of the example is the simplified form of the first line. The DisplayObj must be a CurveChart2D type.
| VBScript | Python |
Call MsgBoxDisp("Name of first x-channel: " & View.ActiveSheet.ActiveArea.DisplayObj.Segments.Item(1).XChannelName) Call MsgBoxDisp("Name of first x-channel: " & View.ActiveSheet.ActiveArea.DisplayObj.Segments(1).XChannelName)
See Also
Procedures
Configuring a Map Display | Configuring a Text Box Display | Deleting Curve Sections and Interpolating over Specified Points | Displaying 2D Axis Systems with Several Y-Axes | Displaying Images in DIAdem VIEW | Displaying Properties in the Legend of a Curve | Displaying the Curve Coordinates | Displaying Videos and Data Synchronously | Finding Values in Channel Tables | Interpolating Curve Points | Setting the Leading Curve | Transferring VIEW Layouts to DIAdem REPORT | Viewing Data as Curves | Zooming and Scrolling Curve Areas
Examples
Analyzing and Displaying Channels Section by Section | Automatic Display of Harmonic Frequencies | Background Segments in DIAdem VIEW | Calculating a Tangent to a Curve | Creating and Viewing Long Data Channels | Dynamic Display of Statistical Characteristic Values in DIAdem VIEW | Overlaying Objects in Videos | User Dialog Box in VIEW for the Calculation of the FFT and Harmonic Frequencies | Vibration Data Analysis with Parallel Processing | Viewing and Automatically Analyzing Data