DIAdem Help

Method: Copy for BodeCurves

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

Method: Copy for BodeCurves

Copies an object of the BodeCurves collection and returns the copied curve as a BodeCurve object, in the script interface of DIAdem VIEW.

Set oBodeCurve = Object.Copy(NameOrIndex, NewName, InsertBeforeNameOrIndex)
ObjectBodeCurves
Object with this method
NameOrIndexVariant
Specifies the name or the index of the curve that is to be copied.
NewNameString
Specifies the name of the new curve. If you specify "", DIAdem generates a unique name.
InsertBeforeNameOrIndexVariant
Specifies the name or the index of the curve before which DIAdem inserts the copied curve. If you specify the index 0 or "", DIAdem copies the curve and inserts it behind the last curve.
oBodeCurveBodeCurve
Returned object Contains the new curve.

The following example copies the first curve of the active range in the active worksheet to the position behind the last curve:

VBScriptPython

 

Call View.ActiveSheet.ActiveArea.DisplayObj.CurvesBode.Copy(1,"NewCurve",0)