DIAdem Help

Method: Add for 2DCurves

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

Method: Add for 2DCurves

Adds an object to the 2DCurves collection and returns a 2DCurve object, in the script interface of DIAdem VIEW.

Set o2DCurve = Object.Add(XNameOrNo, YNameOrNo)
Object2DCurves
Object with this method
XNameOrNoVariant
Specifies the name or the number of the x-channel to be displayed.
YNameOrNoVariant
Specifies the name or the number of the y-channel to be displayed.
o2DCurve2DCurve
Returned object

The following example creates a new worksheet containing a 2D axis system with a curve:

VBScriptPython

 

Call View.Sheets.RemoveAll
Dim oMySheet: Set oMySheet = View.Sheets.Add("NewSheet")
oMySheet.ActiveArea.DisplayObjType = "CurveChart2D"
Call oMySheet.ActiveArea.DisplayObj.Curves2D.Add("[1]/[1]","[1]/[2]")