DIAdem Help

Method: Copy for OrbitCurves

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

Method: Copy for OrbitCurves

Copies an object of the OrbitCurves collection and returns the copied curve as an OrbitCurve object, in the script interface of DIAdem VIEW.

Set oOrbitCurve = Object.Copy(NameOrIndex, NewName, InsertBeforeNameOrIndex)
ObjectOrbitCurves
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.
oOrbitCurveOrbitCurve
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.CurvesOrbit.Copy(1,"NewCurve",0)