DIAdem Help

Method: Item for 2DCurves

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

Method: Item for 2DCurves

Returns the 2DCurve object associated with a specific name or index in DIAdem VIEW.

Set o2DCurve = Object.Item(NameOrIndex)
Object2DCurves
Object with this method
NameOrIndexVariant
Specifies the name or the index of the specific curve.
o2DCurve2DCurve
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 first x-channel of a curve. The second line of the example is the simplified form of the first line. The DisplayObj must be a CurveChart2D type.

VBScriptPython

 

Call MsgBoxDisp("Name of first x-channel: " & View.ActiveSheet.ActiveArea.DisplayObj.Curves2D.Item(1).XChannelName)
Call MsgBoxDisp("Name of first x-channel: " & View.ActiveSheet.ActiveArea.DisplayObj.Curves2D(1).XChannelName)

Log in to get a better experience