Object: LegendItem
- Updated2024-09-12
- 2 minute(s) read
(BirdsEyeView | Bode | Cascade | Collections | Contour | CurveChart2D | Orbit | Polar | ShaftCenterline) > LegendItems > Object: LegendItem
Object: LegendItem
The LegendItem object provides information about a curve in an axis system or in a contour display in DIAdem VIEW. In the legends, DIAdem displays channel properties, values at cursor positions, free text, or a Calculator expression.
The following example generates a 2D axis system with a curve and displays the name for each legend entry:
| VBScript | Python |
Dim oMySheet, oMyChart, oMyCurve, oMyLegends, oMyLegendItem, sOutput Call View.NewLayout() Set oMySheet = View.ActiveSheet oMySheet.ActiveArea.DisplayObjType = "CurveChart2D" Set oMyChart = View.ActiveSheet.ActiveArea.DisplayObj Set oMyCurve = oMyChart.Curves2D.Add("[1]/[1]","[1]/[2]") Set oMyLegends = oMySheet.ActiveArea.DisplayObj.LegendItems sOutput = "Names of legend items: " & vbCrLf For Each oMyLegendItem in oMyLegends sOutput = sOutput & oMyLegendItem.Name & vbCrLf Next Call MsgBox(sOutput)
Returned From
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