Collection: Constants
- Updated2024-09-12
- 2 minute(s) read
(Collections | CurveChart2D) > Collection: Constants
Collection: Constants
The Constants object provides a collection of all Constants in a 2D axis system in DIAdem VIEW. Use the Constants collection to delete constants or to add new constants.
The following example generates a 2D axis system with a curve and an x-constant and a y-constant:
| VBScript | Python |
Dim oMySheet, oMyChart, oMyCurve, oMyConstX, oMyConstY Call Data.Root.Clear() Call DataFileLoad("Example.tdm") 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 oMyConstX = oMyChart.Constants.Add("30",0) oMyConstX.Color = "red" Set oMyConstY = oMyChart.Constants.Add("20",1) oMyConstY.Color = "green"
Properties
Returned From
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