DIAdem Help

Method: Item for BodeCurves

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

Method: Item for BodeCurves

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

Set oBodeCurve = Object.Item(NameOrIndex)
ObjectBodeCurves
Object with this method
NameOrIndexVariant
Specifies the name or the index of the BodeCurve curve.
oBodeCurveBodeCurve
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 names of the phase and the amplitude channel of the first curve. The second row in the example displays the simplified syntax without item. The DisplayObj must be a Bode type:

VBScriptPython

 

Call MsgBoxDisp("Name of phase channel: " & View.ActiveSheet.ActiveArea.DisplayObj.CurvesBode.Item(1).PhaseChannelName)
Call MsgBoxDisp("Name of amplitude channel: " & View.ActiveSheet.ActiveArea.DisplayObj.CurvesBode(1).AmplitudeChannelName)