DIAdem Help

Method: Copy for 2DCurves

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

Method: Copy for 2DCurves

Copies, in the script interface of DIAdem-VIEW, an object of the 2DCurves collection and returns the copied curve as a 2DCurve object.

Set o2DCurve = Object.Copy(NameOrIndex, NewName, InsertBeforeNameOrIndex)
Object2DCurves
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.
o2DCurve2DCurve
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.Curves2D.Copy(1,"NewCurve",0)