DIAdem Help

Method: Copy for PolarCurves

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

Method: Copy for PolarCurves

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

Set oPolarCurve = Object.Copy(NameOrIndex, NewName, InsertBeforeNameOrIndex)
ObjectPolarCurves
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.
oPolarCurvePolarCurve
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.CurvesPolar.Copy(1,"NewCurve",0)