Method: Add for OrderLines
- Updated2024-09-12
- 2 minute(s) read
DIAdem VIEW > Methods > Method: Add for OrderLines
Method: Add for OrderLines
Adds an order line to an OrderLines collection in the DIAdem VIEW script interface and returns an OrderLine object.
Set oOrderLine = Object.Add(OrderValue)
| Object | OrderLines Object with this method |
| OrderValue | Double Specifies the value of the order line. |
| oOrderLine | OrderLine Returned object |
The following example creates a cascade display and inserts six order lines:
| VBScript | Python |
Call Data.Root.Clear() Call DataFileLoad(ProgramDrv & "Examples\Data\cascade.tdm","TDM","") Dim oMyDisplayObj, oMyCascadeCurve, i 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]") oMyCascadeCurve.OrderChannelName = "[1]/[11]" For i = 1 to 6 Call oMyCascadeCurve.OrderLines.Add(i) oMyCascadeCurve.OrderLines(i).Color = "blue" Next
See Also
Examples
Alignment Functions in DIAdem VIEW | Automatic Display of Harmonic Frequencies | Bird's Eye View Display | Calculating a Tangent to a Curve | Contour Display in DIAdem VIEW | Creating and Viewing Long Data Channels | Dynamic Display of Statistical Characteristic Values in DIAdem VIEW | Overlaying Objects in Videos | Planetary Motion | Synchronizing Videos and Data | Synchronizing Videos and Waveform Data | User Dialog Box in VIEW for the Calculation of the FFT and Harmonic Frequencies | Using a User Command to Calculate the Difference between the Y-Values | Various Display Modes in DIAdem VIEW | Vibration Data Analysis with Parallel Processing | Viewing and Automatically Analyzing Data