DIAdem Help

Method: Add for BodeCurves

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

Method: Add for BodeCurves

Adds an object to the BodeCurves collection and returns a BodeCurve object, in the script interface of DIAdem VIEW.

Set oBodeCurve = Object.Add(XNameOrNo, PhaseNameOrNo, AmplitudeNameOrNo)
ObjectBodeCurves
Object with this method
XNameOrNoVariant
Specifies the name or the number of the x-channel to be displayed.
PhaseNameOrNoVariant
Specifies the name or the number of the phase channel to be displayed.
AmplitudeNameOrNoVariant
Specifies the name or the number of the amplitude channel to be displayed.
oBodeCurveBodeCurve
Returned object

The following example creates a new worksheet with a Bode axis system and a Bode curve:

VBScriptPython

 

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